共用方式為


LoopingSelectorAutomationPeer.FindItemByProperty 方法

定義

依指定的屬性值擷取項目。

public:
 virtual IRawElementProviderSimple ^ FindItemByProperty(IRawElementProviderSimple ^ startAfter, AutomationProperty ^ automationProperty, Platform::Object ^ value) = FindItemByProperty;
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

參數

startAfter
IRawElementProviderSimple

容器中的項目,從這個項目之後要開始搜尋。

automationProperty
AutomationProperty

包含要擷取之值的屬性。

value
Object

Platform::Object

IInspectable

要擷取的值。

傳回

如果這類專案存在,則為符合搜尋準則的第一個專案;否則為 null

實作

M:Windows.UI.Xaml.Automation.Provider.IItemContainerProvider.FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,System.Object) M:Windows.UI.Xaml.Automation.Provider.IItemContainerProvider.FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,Platform::Object) M:Windows.UI.Xaml.Automation.Provider.IItemContainerProvider.FindItemByProperty(Windows.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Windows.UI.Xaml.Automation.AutomationProperty,IInspectable)

適用於