ItemsControlAutomationPeer.IItemContainerProvider.FindItemByProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves an element by 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);
abstract member System.Windows.Automation.Provider.IItemContainerProvider.FindItemByProperty : System.Windows.Automation.Provider.IRawElementProviderSimple * int * obj -> System.Windows.Automation.Provider.IRawElementProviderSimple
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
This member is an explicit interface member implementation. It can be used only when the ItemsControlAutomationPeer instance is cast to an IItemContainerProvider interface.
Applies to
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про