CommandBarFlyoutCommandBarAutomationProperties.GetControlType 方法

定义

检索指定对象的控件类型。

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

参数

element
UIElement

要获取其控件类型的 对象。

返回

指定对象的控件类型。

适用于