ComponentOne RichTextBox for WPF
C1.WPF.SpellChecker Namespace / CharRange Class / GetWordAt Method
String that contains the text.
Position where to look for a word.
IgnoreOptions that determines words to ignore.

In This Topic
    GetWordAt Method (CharRange)
    In This Topic
    Gets the word at a given position in the string.
    Syntax
    'Declaration
     
    
    Public Shared Function GetWordAt( _
       ByVal text As String, _
       ByVal pos As Integer, _
       ByVal ignore As IgnoreOptions _
    ) As CharRange
    public static CharRange GetWordAt( 
       string text,
       int pos,
       IgnoreOptions ignore
    )

    Parameters

    text
    String that contains the text.
    pos
    Position where to look for a word.
    ignore
    IgnoreOptions that determines words to ignore.

    Return Value

    A CharRange object that contains the word at the specified position in the string, or null if there are no more words at the specified position.
    See Also