CommandBarFlyoutCommandBarAutomationProperties.GetControlType 方法

定义

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

本文档适用于 Windows 应用 SDKWinUI 的 WinUI 2 for UWP (,请参阅Windows 应用 SDK命名空间) 。

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

参数

element
UIElement

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

返回

指定对象的控件类型。

适用于