ComponentOne SpellChecker for WinForms
GetRangeIndexFromPosition Method

C1.Win.C1SpellChecker.4 Assembly > C1.Win.C1SpellChecker Namespace > CharRangeList Class : GetRangeIndexFromPosition Method
Position within the text.
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

Reference

CharRangeList Class
CharRangeList Members