ComponentOne SpellChecker for WPF and Silverlight
GetRangeIndexFromPosition Method (CharRangeList)

C1.WPF.SpellChecker 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 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

Reference

CharRangeList Class
CharRangeList Members