IItemContainerProvider.FindItemByProperty Method

Definition

Retrieves an element by the specified property value.

public:
 IRawElementProviderSimple ^ FindItemByProperty(IRawElementProviderSimple ^ startAfter, AutomationProperty ^ automationProperty, Platform::Object ^ value);
IRawElementProviderSimple FindItemByProperty(IRawElementProviderSimple const& startAfter, AutomationProperty const& automationProperty, IInspectable const& value);
public IRawElementProviderSimple FindItemByProperty(IRawElementProviderSimple startAfter, AutomationProperty automationProperty, object value);
function findItemByProperty(startAfter, automationProperty, value)
Public Function FindItemByProperty (startAfter As IRawElementProviderSimple, automationProperty As AutomationProperty, value As Object) As IRawElementProviderSimple

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

Platform::Object

IInspectable

The value to retrieve.

Returns

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

Applies to