Share via


AutomationProperties.GetAutomationControlType(UIElement) 方法

定义

public:
 static AutomationControlType GetAutomationControlType(UIElement ^ element);
 static AutomationControlType GetAutomationControlType(UIElement const& element);
public static AutomationControlType GetAutomationControlType(UIElement element);
function getAutomationControlType(element)
Public Shared Function GetAutomationControlType (element As UIElement) As AutomationControlType

参数

element
UIElement

要获取其 UI 自动化控件类型的 UI 元素。

返回

指定 Microsoft.UI.Xaml.Automation.Peers.AutomationControlType UI 元素的 。

适用于