ImageEn, unit iexRichEdit |
|
TIERichEdit.LineFromChar
Declaration
function LineFromChar(CharIndex: Integer): Integer;
Description
Returns the line number of the specified character.
Rich Edit Identifier: EM_EXLINEFROMCHAR
// Get the index of the first character on the current line
lineNo := IERichEdit1.LineFromChar( IERichEdit1.SelStart );
idx := IERichEdit1.GetLineIndex( lineNo );