RichEditTextRange.FindText(String, Int32, FindOptions) Method

Definition

Searches for a particular text string in a range and, if found, selects the string.

public:
 virtual int FindText(Platform::String ^ value, int scanLength, FindOptions options) = FindText;
int FindText(winrt::hstring const& value, int const& scanLength, FindOptions const& options);
public int FindText(string value, int scanLength, FindOptions options);
function findText(value, scanLength, options)
Public Function FindText (value As String, scanLength As Integer, options As FindOptions) As Integer

Parameters

value
String

Platform::String

winrt::hstring

The text string to search for.

scanLength
Int32

int

The maximum number of characters to search. It can be one of the following.

options
FindOptions

The options to use when doing the text search.

Returns

Int32

int

The length of the matching text string, or zero if no matching string is found.

Implements

M:Windows.UI.Text.ITextRange.FindText(System.String,System.Int32,Windows.UI.Text.FindOptions) M:Windows.UI.Text.ITextRange.FindText(Platform::String,int,Windows.UI.Text.FindOptions) M:Windows.UI.Text.ITextRange.FindText(winrt::hstring,int,Windows.UI.Text.FindOptions)

Applies to