IDebugDocumentTextEvents2::onInsertText

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. 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 inserted into the document.

Syntax

HRESULT onInsert( 
   TEXT_POSITION pos,
   DWORD         dwNumToInsert
);
int onInsert( 
   enum_TEXT_POSITION pos,
   uint               dwNumToInsert
);

Parameters

pos
[in] A TEXT_POSITION structure that indicates where the text was inserted.

dwNumToInsert
[in] Specifies the number of characters of text that were inserted.

Return Value

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

See also