TCnTextBoxBase.GetCharIndexFromPosition(Integer,Integer) Method

Retrieves the index of the character nearest to the specified location.

Namespace: CNClrLib.Control.TextBoxBase
public
 function GetCharIndexFromPosition(X, Y: Integer): Integer; overload;

Parameters

X
Type: Integer

The x-coordinate of the location to search.

Y
Type: Integer

The y-coordinate of the location to search.

Return Value

Type: Integer

The zero-based character index at the specified location.