Share via


IDebugDocumentTextEvents2::onReplaceText

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Notifies the debug package that text has been replaced in the document.

Syntax

HRESULT onReplaceText(   
   TEXT_POSITION pos,  
   DWORD         dwNumToReplace  
);  
int onReplaceText(   
   enum_TEXT_POSITION pos,  
   uint               dwNumToReplace  
);  

Parameters

pos
[in] A TEXT_POSITION indicates where the text was replaced.

dwNumToReplace
[in] Specifies the number of characters of text that were replaced.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

See Also

IDebugDocumentTextEvents2
TEXT_POSITION