CommandBarFlyoutCommandBarAutomationProperties.GetControlType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.