IDebugDocumentText::GetLineOfPosition
Returns the line number and, optionally, the character offset within the line that corresponds to the given character-position.
Syntax
HRESULT GetLineOfPosition(
ULONG cCharacterPosition,
ULONG* pcLineNumber,
ULONG* pcCharacterOffsetInLine
);
Parameters
cCharacterPosition
[in] Start location of the character position range.
pcLineNumber
[out] The line number of the range.
pcCharacterOffsetInLine
[in, out] The character offset of the range within line pcLineNumber
. If this parameter is NULL
, the method does not return a value.
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 returns the line number and, optionally, the character offset within the line that corresponds to the given character-position.