AutomationProperties.GetAutomationControlType(UIElement) Method

Definition

Gets the Microsoft.UI.Xaml.Automation.Peers.AutomationControlType for the specified UI element.

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

Parameters

element
UIElement

The UI element for which to get the UI Automation control type.

Returns

The Microsoft.UI.Xaml.Automation.Peers.AutomationControlType for the specified UI element.

Applies to