RichTextBox for WPF | ComponentOne
C1.WPF.SpellChecker Namespace / CharRangeList Class / GetRangeIndexFromPosition Method
Position within the text.

In This Topic
    GetRangeIndexFromPosition Method (CharRangeList)
    In This Topic
    Gets the index of the CharRange that contains the specified position within the text.
    Syntax
    'Declaration
     
    
    Public Function GetRangeIndexFromPosition( _
       ByVal charPosition As Integer _
    ) As Integer
    public int GetRangeIndexFromPosition( 
       int charPosition
    )

    Parameters

    charPosition
    Position within the text.

    Return Value

    Index of the CharRange in the list that contains the specified position, or -1 if there is no error at the specified position.
    See Also