ITextRangeProvider.FindText Method (String, Boolean, Boolean)

 

Returns a text range subset that contains the specified text.

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

ITextRangeProvider FindText(
	string text,
	bool backward,
	bool ignoreCase
)

Parameters

text
Type: System.String

The text string to search for.

backward
Type: System.Boolean

true if the last occurring text range should be returned instead of the first; otherwise false.

ignoreCase
Type: System.Boolean

true if case should be ignored; otherwise false.

Return Value

Type: System.Windows.Automation.Provider.ITextRangeProvider

A text range matching the specified text; otherwise null (Nothing in Microsoft Visual Basic .NET).

There is no differentiation between hidden and visible text.

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top
Show: