IDebugDocumentText::GetPositionOfContext

Returns the character-position range corresponding to a document context.

Syntax

HRESULT GetPositionOfContext(  
   IDebugDocumentContext*  psc,  
   ULONG*                  pcCharacterPosition,  
   ULONG*                  cNumChars  
);  

Parameters

psc
[in] The document context object.

pcCharacterPosition
[out] Start location of the character position range.

cNumChars
[out] Number of characters in the 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

The document context provided to this method must be associated with this document.

See also

IDebugDocumentText Interface