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

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

    Parameters

    pt
    The location to search.

    Return Value

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