共用方式為


AutomationProperties.GetAutomationControlType(UIElement) 方法

定義

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

參數

element
UIElement

要取得 UI 自動化控制項類型的 UI 元素。

傳回

Microsoft.UI.Xaml.Automation.Peers.AutomationControlType指定之 UI 專案的 。

適用於