Share via


AutomationProperties.GetAutomationControlType(UIElement) Method

Definition

Gets the value of the AutomationProperties.AutomationControlType attached property for the specified DependencyObject.

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 DependencyObject to check.

Returns

The UI Automation control type for the specified element.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Applies to