Line and Character Operations
Lines and characters of a TXTextControl document can be located by index, by point or by rectangle. The methods below convert between character positions, line numbers and screen coordinates and return the number of lines and the base line position.
Methods
| Member | Description |
|---|---|
TXTextControl.GetBaseLinePos | Returns the baseline position of the specified line. |
TXTextControl.GetCharFromLine | Returns the position of a line's first character. |
TXTextControl.GetCharRect | Returns the rectangular area covered by a certain character. |
TXTextControl.GetLineCount | Returns the number of text lines in a TXTextControl. |
TXTextControl.GetLineFromChar | Returns the index of the line which contains the character with the specified character position. |
TXTextControl.GetLineFromPoint | Returns the index of the line which contains a given point. |
TXTextControl.GetLineRect | Returns the rectangular area covered by a line of text. |