TCustomRichViewEdit.GetCurrentLineCol

<< Click to display table of contents >>

TCustomRichViewEdit.GetCurrentLineCol

Returns a line and column at the caret position.

procedure GetCurrentLineCol(out Line, Column: Integer);

(introduced in version 1.7)

Number of lines depends on word-wrapping.

Number of the first line is 1. Number of the leftmost caret position is 1.

Lines in table cells are calculated relative to the beginning of the cell.

Warning: this function contains calculations inside, and it may take some time to execute it

(There is an idea how to make it lightning-fast in future, but it will be implemented later)

This method must be called only when the document is formatted.

 

See also methods of TCustomRichView:

GetLineNo.