Graphisoft®

Dialog ManagerVersion: 2.0

RichEdit::GetLineFromPosition

Retrieves the line index of the specified character position.

long GetLineFromPosition (long charPosition) const;

Parameters

charPosition
Zero-based position of the character. These predefined values can be used as well:
Value Meaning
DG_REP_TEXTBEGIN The first character of the text.
DG_REP_TEXTEND The last character of the text.

Return Value

The zero-based line index of the specified character position.