This topic has not yet been rated - Rate this topic

IItemContainerProvider.FindItemByProperty method

Retrieves an element by the specified property value.

Syntax


IRawElementProviderSimple FindItemByProperty(
  IRawElementProviderSimple startAfter, 
  AutomationProperty automationProperty, 
  object value
)

Parameters

startAfter

Type: IRawElementProviderSimple

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

automationProperty

Type: AutomationProperty

The property that contains the value to retrieve.

value

Type: System.Object [.NET] | Platform::Object [C++]

The value to retrieve.

Return value

Type: IRawElementProviderSimple

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.UI.Xaml.Automation.Provider
Windows::UI::Xaml::Automation::Provider [C++]

Metadata

Windows.winmd

See also

IItemContainerProvider

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.