EditField.LineNumAtCharPos Method
Returns (as an Integer) the line number in which the CharPosition character appears. Characters are numbered consecutively with the first character numbered 1.
Syntax
EditField.LineNumAtCharPos CharPosition
Parameters | |
CharPosition |
The first line is numbered zero. Used with ScrollPosition, this lets you scroll the EditField to a particular place in the text.