GetTextExtent Method
Returns the extension of the complete text in twips. The text width is the largest line width of the currently contained text. Both values are in 100 percent independent of the zoom factor currently set. The text height is at least the height of the first line even if there is no text.
Syntax
TXTextControl.GetTextExtent
Return Value
The method returns an array of 2 long values specifying the width and the height of the text.
Data Types
| Name | Data type |
|---|---|
| Return value | Array of 2 Long |