CommandBarFlyoutCommandBarAutomationProperties.SetControlType 方法

定义

设置指定对象的控件类型。

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

public:
 static void SetControlType(UIElement ^ element, AutomationControlType value);
 static void SetControlType(UIElement const& element, AutomationControlType const& value);
public static void SetControlType(UIElement element, AutomationControlType value);
Public Shared Sub SetControlType (element As UIElement, value As AutomationControlType)

参数

element
UIElement

要为其设置控件类型的对象。

value
AutomationControlType

指定对象的控件类型。

适用于