RichTextBox for UWP | ComponentOne
C1.Xaml.RichTextBox Namespace / C1RichTextBox Class / FindText Method
The text string to search for.
Specifies the search direction. The default is a forward search.
The options to use when doing the text search.

In This Topic
    FindText Method
    In This Topic
    Searches for a particular text string from the end of Selection, if found, selects the string.
    Syntax
    'Declaration
     
    Public Function FindText( _
       ByVal text As String, _
       Optional ByVal direction As LogicalDirection, _
       Optional ByVal option As C1FindOptions _
    ) As Integer
    public int FindText( 
       string text,
       LogicalDirection direction,
       C1FindOptions option
    )

    Parameters

    text
    The text string to search for.
    direction
    Specifies the search direction. The default is a forward search.
    option
    The options to use when doing the text search.

    Return Value

    If found, return the start index. If not found, return -1.
    See Also