TXTextControl.GetCaretRect Method

Returns the rectangular area covered by the caret which indicates the current text input position. The dimensions are given in pixels with an origin at the top left corner of the control.

Introduced: 22.0.



Return Value

The method returns an array of 4 long values specifying the left, top, right and bottom border of the requested rectangle in pixels.

Data Types

Return value: Array of 4 Long

See Also