共用方式為


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 元素。

適用於