ComponentOne SpellChecker for WinForms
C1.Win.C1SpellChecker.4.8 Assembly / C1.Win.C1SpellChecker 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 System.Integer _
    ) As System.Integer
    public System.int GetRangeIndexFromPosition( 
       System.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