TX Text Control ActiveX

Line and Character Operations

Topic

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

MemberDescription
TXTextControl.GetBaseLinePosReturns the baseline position of the specified line.
TXTextControl.GetCharFromLineReturns the position of a line's first character.
TXTextControl.GetCharRectReturns the rectangular area covered by a certain character.
TXTextControl.GetLineCountReturns the number of text lines in a TXTextControl.
TXTextControl.GetLineFromCharReturns the index of the line which contains the character with the specified character position.
TXTextControl.GetLineFromPointReturns the index of the line which contains a given point.
TXTextControl.GetLineRectReturns the rectangular area covered by a line of text.