ItemsControlAutomationPeer.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)

适用于