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:Microsoft.UI.Xaml.Automation.Provider.IItemContainerProvider.FindItemByProperty(Microsoft.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Microsoft.UI.Xaml.Automation.AutomationProperty,System.Object) M:Microsoft.UI.Xaml.Automation.Provider.IItemContainerProvider.FindItemByProperty(Microsoft.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Microsoft.UI.Xaml.Automation.AutomationProperty,Platform::Object) M:Microsoft.UI.Xaml.Automation.Provider.IItemContainerProvider.FindItemByProperty(Microsoft.UI.Xaml.Automation.Provider.IRawElementProviderSimple,Microsoft.UI.Xaml.Automation.AutomationProperty,IInspectable)

适用于