Input for WinForms | ComponentOne
C1.Win.Input.Base Namespace / C1TextBoxBase Class / GetCharIndexFromPosition Method
The location to search.

In This Topic
    GetCharIndexFromPosition Method (C1TextBoxBase)
    In This Topic
    Retrieves the index of the character nearest to the specified location.
    Syntax
    'Declaration
     
    
    Public Function GetCharIndexFromPosition( _
       ByVal pt As Point _
    ) As Integer
    public int GetCharIndexFromPosition( 
       Point pt
    )

    Parameters

    pt
    The location to search.

    Return Value

    The zero-based character index at the specified location.
    See Also