ComponentOne RichTextBox for UWP
FindText Method

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.
Searches for a particular text string from the end of Selection, if found, selects the string.
Syntax
'Declaration
 
Public Function FindText( _
   ByVal text As System.String, _
   Optional ByVal direction As Windows.UI.Xaml.Documents.LogicalDirection, _
   Optional ByVal option As C1FindOptions _
) As System.Integer
public System.int FindText( 
   System.string text,
   Windows.UI.Xaml.Documents.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

Reference

C1RichTextBox Class
C1RichTextBox Members