.NET Framework Class Library
ITextRangeProvider..::.FindAttribute Method

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

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

Visual Basic (Declaration)
Function FindAttribute ( _
    attribute As Integer, _
    value As Object, _
    backward As Boolean _
) As ITextRangeProvider
Visual Basic (Usage)
Dim instance As ITextRangeProvider
Dim attribute As Integer
Dim value As Object
Dim backward As Boolean
Dim returnValue As ITextRangeProvider

returnValue = instance.FindAttribute(attribute, _
    value, backward)
C#
ITextRangeProvider FindAttribute(
    int attribute,
    Object value,
    bool backward
)
Visual C++
ITextRangeProvider^ FindAttribute(
    int attribute, 
    Object^ value, 
    bool backward
)
JScript
function FindAttribute(
    attribute : int, 
    value : Object, 
    backward : boolean
) : ITextRangeProvider

Parameters

attribute
Type: System..::.Int32
The attribute to search for.
value
Type: System..::.Object
The attribute value to search for. This value must match the type specified for the attribute.
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..::.ITextRangeProvider
A text range having a matching attribute and attribute value; otherwise null (Nothing in Microsoft Visual Basic .NET).
Remarks

There is no differentiation between hidden and visible text.

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information

.NET Framework

Supported in: 3.5, 3.0
See Also

Reference

Tags :


Page view tracker