Muokkaa

Jaa


DataGridColumnHeadersPresenterAutomationPeer.IItemContainerProvider.FindItemByProperty Method

Definition

Retrieves an element with the specified property value.

 virtual System::Windows::Automation::Provider::IRawElementProviderSimple ^ System.Windows.Automation.Provider.IItemContainerProvider.FindItemByProperty(System::Windows::Automation::Provider::IRawElementProviderSimple ^ startAfter, int propertyId, System::Object ^ value) = System::Windows::Automation::Provider::IItemContainerProvider::FindItemByProperty;
System.Windows.Automation.Provider.IRawElementProviderSimple IItemContainerProvider.FindItemByProperty (System.Windows.Automation.Provider.IRawElementProviderSimple startAfter, int propertyId, object value);
override this.System.Windows.Automation.Provider.IItemContainerProvider.FindItemByProperty : System.Windows.Automation.Provider.IRawElementProviderSimple * int * obj -> System.Windows.Automation.Provider.IRawElementProviderSimple
Function FindItemByProperty (startAfter As IRawElementProviderSimple, propertyId As Integer, value As Object) As IRawElementProviderSimple Implements IItemContainerProvider.FindItemByProperty

Parameters

startAfter
IRawElementProviderSimple

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

propertyId
Int32

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 if no items match.

Implements

Remarks

Set the propertyId parameter to 0 to retrieve the next item after startAfter, regardless of the value specified in value. Set startAfter to null to start the search with the first item.

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

Applies to