Редагувати

Поділитися через


ITextRangeProvider.FindAttribute(Int32, Object, Boolean) Method

Definition

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

public:
 System::Windows::Automation::Provider::ITextRangeProvider ^ FindAttribute(int attribute, System::Object ^ value, bool backward);
public System.Windows.Automation.Provider.ITextRangeProvider FindAttribute (int attribute, object value, bool backward);
abstract member FindAttribute : int * obj * bool -> System.Windows.Automation.Provider.ITextRangeProvider
Public Function FindAttribute (attribute As Integer, value As Object, backward As Boolean) As ITextRangeProvider

Parameters

attribute
Int32

The attribute to search for.

value
Object

The attribute value to search for. This value must match the type specified for the attribute.

backward
Boolean

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

Returns

A text range having a matching attribute and attribute value; otherwise null (Nothing in Visual Basic).

Remarks

There is no differentiation between hidden and visible text.

Applies to