AutomationProperties.GetAutomationControlType(UIElement) 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.
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)
|