Share via


AutomationProperties.SetAutomationControlType 方法

定义

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

参数

element
UIElement

要为其设置 UI 自动化控件类型的 UI 元素。

适用于