Share via


CommandBarFlyoutCommandBarAutomationProperties.GetControlType Method

Definition

Retrieves the control type for the specified object.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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

Parameters

element
UIElement

The object to get the control type for.

Returns

The control type for the specified object.

Applies to