[]
        
(Showing Draft Content)

C1.WPF.SpellChecker.CharRangeList.GetRangeIndexFromPosition

GetRangeIndexFromPosition Method

GetRangeIndexFromPosition(int)

Gets the index of the CharRange that contains the specified position within the text.

Declaration
public int GetRangeIndexFromPosition(int charPosition)
Parameters
Type Name Description
int charPosition

Position within the text.

Returns
Type Description
int

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