Click to return to the Component Development home page    
IDebugDocumentText::GetDo...     IDebugDocumentText::GetPo...     IDebugDocumentText Interf...    
Web Workshop  |  Component Development

IDebugDocumentText::GetLineOfPosition Method


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.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.