[]
Returns the zero-based insertion index for the specified point.
public int GetCharacterIndexFromPoint(Point point, bool snapToText)
Public Function GetCharacterIndexFromPoint(point As Point, snapToText As Boolean) As Integer
Type | Name | Description |
---|---|---|
Point | point | A point in GcTextBox coordinate-space for which to return an insertion index. |
bool | snapToText | true to return the nearest insertion index if there is no character at the specified point; false to return –1 if there is no character at the specified point. |
Type | Description |
---|---|
int | The insertion index for the specified point, or –1 if no valid insertion index can be found. |