IItemContainerProvider.FindItemByProperty Method

Definition

Retrieves an element by the specified property value.

C#
public IRawElementProviderSimple FindItemByProperty(IRawElementProviderSimple startAfter, AutomationProperty automationProperty, object value);

Parameters

startAfter
IRawElementProviderSimple

The item in the container after which to begin the search.

automationProperty
AutomationProperty

The property that contains the value to retrieve.

value
Object

The value to retrieve.

Returns

The first item that matches the search criterion; otherwise, null.

Applies to

Продукт Версії
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6