ITextRangeProvider.FindAttribute Method

Returns a text range subset that has the specified attribute ID and attribute value.

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

ITextRangeProvider FindAttribute(
	int attributeId,
	Object value,
	bool backward


Type: System.Int32
The attribute ID to search for.
Type: System.Object
The attribute value to search for. This value must match the specified attribute type.
Type: System.Boolean
true if the last occurring text range should be returned instead of the first; otherwise, false.

Return Value

Type: System.Windows.Automation.Provider.ITextRangeProvider
A text range that has a matching attribute ID and attribute value; otherwise, null.

This method does not differentiate between hidden and visible text.


Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions