共用方式為


IDebugDocumentTextEvents::onInsertText

Indicates that new text has been added to the document.

Syntax

HRESULT onInsertText(  
   ULONG  cCharacterPosition,  
   ULONG  cNumToInsert  
);  

Parameters

cCharacterPosition
[in] The character position where the new text was inserted.

cNumToInsert
[in] The number of characters that have been inserted.

Return Value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Value Description
S_OK The method succeeded.

Remarks

This method is typically called by a host that progressively loads content, such as a Web browser.

See also

IDebugDocumentTextEvents Interface
IDebugDocumentTextEvents::onRemoveText