FindText Method

ITextRangeProvider.FindText Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns a text range subset that contains the specified text.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Function FindText ( _
	text As String, _
	backward As Boolean, _
	ignoreCase As Boolean _
) As ITextRangeProvider

Parameters

text
Type: System.String
The text string to search for.
backward
Type: System.Boolean
true to return the last occurring text range instead of the first; otherwise, false.
ignoreCase
Type: System.Boolean
true to ignore case; otherwise, false.

Return Value

Type: System.Windows.Automation.Provider.ITextRangeProvider
A text range that matches the specified text; otherwise, Nothing.

This method does not differentiate between hidden and visible text.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft