ITextRangeProvider.FindAttribute 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 has the specified attribute ID and attribute value.
Assembly: System.Windows (in System.Windows.dll)
'Declaration Function FindAttribute ( _ attributeId As Integer, _ value As Object, _ backward As Boolean _ ) As ITextRangeProvider
Parameters
- attributeId
- Type: System.Int32
The attribute ID to search for.
- value
- Type: System.Object
The attribute value to search for. This value must match the specified attribute type.
- backward
- 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.ITextRangeProviderA text range that has a matching attribute ID and attribute value; otherwise, Nothing.
Show: