[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.GetCharacterIndexFromPoint

GetCharacterIndexFromPoint Method

GetCharacterIndexFromPoint(Point, bool)

Returns the zero-based insertion index for the specified point.

Declaration
public int GetCharacterIndexFromPoint(Point point, bool snapToText)
Public Function GetCharacterIndexFromPoint(point As Point, snapToText As Boolean) As Integer
Parameters
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.

Returns
Type Description
int

The insertion index for the specified point, or –1 if no valid insertion index can be found.