CommandBarFlyoutCommandBarAutomationProperties.SetControlType 方法

定义

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

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);
function setControlType(element, value)
Public Shared Sub SetControlType (element As UIElement, value As AutomationControlType)

参数

element
UIElement

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

value
AutomationControlType

指定对象的控件类型。

适用于