ITextRange.FindText(String, Int32, FindOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);
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.