IItemContainerProvider.FindItemByProperty Method
Collapse the table of content
Expand the table of content

ItemsControlAutomationPeer::IItemContainerProvider::FindItemByProperty Method (IRawElementProviderSimple^, Int32, Object^)

.NET Framework (current version)

Retrieves an element by the specified property value.

Namespace:   System.Windows.Automation.Peers
Assembly:  PresentationFramework (in PresentationFramework.dll)

virtual IRawElementProviderSimple^ FindItemByProperty(
	IRawElementProviderSimple^ startAfter,
	int propertyId,
	Object^ value
) sealed = IItemContainerProvider::FindItemByProperty


Type: System.Windows.Automation.Provider::IRawElementProviderSimple^

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

Type: System::Int32

The property that contains the value to retrieve.

Type: System::Object^

The value to retrieve.

Return Value

Type: System.Windows.Automation.Provider::IRawElementProviderSimple^

The first item that matches the search criterion; otherwise, null if no items match.

This member is an explicit interface member implementation. It can be used only when the ItemsControlAutomationPeer instance is cast to an IItemContainerProvider interface.

.NET Framework
Available since 4.0
Return to top
© 2016 Microsoft