ItemContainerPattern.FindItemByProperty Methode

Definition

Ruft ein Element anhand des angegebenen Eigenschaftswerts ab.

public:
 System::Windows::Automation::AutomationElement ^ FindItemByProperty(System::Windows::Automation::AutomationElement ^ startAfter, System::Windows::Automation::AutomationProperty ^ property, System::Object ^ value);
public System.Windows.Automation.AutomationElement FindItemByProperty (System.Windows.Automation.AutomationElement startAfter, System.Windows.Automation.AutomationProperty property, object value);
member this.FindItemByProperty : System.Windows.Automation.AutomationElement * System.Windows.Automation.AutomationProperty * obj -> System.Windows.Automation.AutomationElement
Public Function FindItemByProperty (startAfter As AutomationElement, property As AutomationProperty, value As Object) As AutomationElement

Parameter

startAfter
AutomationElement

Das Element im Container, nach dem die Suche gestartet werden soll.

property
AutomationProperty

Die Eigenschaft, die den abzurufenden Wert enthält.

value
Object

Der abzurufende Wert.

Gibt zurück

AutomationElement

Das erste Element, das mit dem Suchkriterium übereinstimmt, andernfalls null, wenn keine Elemente übereinstimmen.

Hinweise

Legen Sie den propertyId Parameter fest, um 0 das nächste Element nach startAfterdem wert abzurufen, der in value. Legen Sie startAfter fest, dass null die Suche mit dem ersten Element gestartet werden soll.

Gilt für