Retrieves the line number and character offset that corresponds to a given character position.
Syntax
HRESULT GetLineOfPosition( ULONG cCharacterPosition, ULONG *pcLineNumber, ULONG *pcCharacterOffsetInLine );
Parameters
- cCharacterPosition
- [in] Integer that specifies a character position.
- pcLineNumber
- [out] Address of an integer that specifies the retrieved line number.
- pcCharacterOffsetInLine
- [in] Address of an integer that specifies the retrieved offset.
Return Value
Returns S_OK if successful, or an error code otherwise.