TXTextControl.GetBaseLinePos Method

Returns the baseline position of the specified line. The dimensions are given in twips with an origin at the upper left corner of the text. The relationship between the upper left corner of the text and the upper left corner of the control can be obtained with the ScrollPosY property.


TXTextControl.GetBaseLinePos Line
Parameter Description

Specifies the index of the line whose baseline position is returned. The index of the first line is zero.

Return Value

The method returns the requested baseline position in twips. It is zero if an error has occurred or if the specified line does not exist.

Data Types

Line:    Long
Return value:    Long

See Also