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

Das erste Element, das dem Suchkriterium entspricht; andernfalls stimmen null keine Elemente überein.

Hinweise

Legen Sie den propertyId Parameter fest, nach dem das nächste Element 0abgerufen werden sollstartAfter, unabhängig vom in value. Legen Sie startAfter fest, null dass die Suche mit dem ersten Element gestartet wird.

Gilt für: