Partager via


IDebugDocumentText::GetContextOfPosition

Creates a document context object corresponding to the provided character position range.

Syntax

HRESULT GetContextOfPosition(  
   ULONG                    cCharacterPosition,  
   ULONG                    cNumChars,  
   IDebugDocumentContext**  ppsc  
);  

Parameters

cCharacterPosition
[in] Start location of the character position range.

cNumChars
[in] Number of characters in the range.

ppsc
[out] The document context object corresponding to the specified character position range.

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 creates a document context object corresponding to the provided character position range.

See also

IDebugDocumentText Interface