ITextRange.FindText(String, Int32, FindOptions) ITextRange.FindText(String, Int32, FindOptions) ITextRange.FindText(String, Int32, FindOptions) ITextRange.FindText(String, Int32, FindOptions) Method

Definition

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

public : int FindText(Platform::String value, int scanLength, FindOptions options)
int32_t FindText(winrt::hstring value, int32_t scanLength, FindOptions options) const;
public int FindText(String value, Int32 scanLength, FindOptions options)
Public Function FindText(value As String, scanLength As Int32, options As FindOptions) As int

Parameters

value
String String

The text string to search for.

scanLength
Int32 Int32

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

options
FindOptions FindOptions

The options to use when doing the text search.

Returns

int int

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