TX Text Control ActiveX

GetBaseLinePos Method

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.

Syntax

TXTextControl.GetBaseLinePos Line

Parameters

ParameterDescription
LineSpecifies 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

NameData type
LineLong
Return valueLong

See Also