Returns the line number and, optionally, the character offset within the line that corresponds to the given character-position.
HRESULT GetLineOfPosition( ULONG cCharacterPosition, ULONG* pcLineNumber, ULONG* pcCharacterOffsetInLine );
- 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.
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. |
This method returns the line number and, optionally, the character offset within the line that corresponds to the given character-position.