AutomationProperties.SetAutomationControlType 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.
Sets the value of the AutomationProperties.AutomationControlType attached property for the specified DependencyObject.
public:
static void SetAutomationControlType(UIElement ^ element, AutomationControlType value);
static void SetAutomationControlType(UIElement const& element, AutomationControlType const& value);
public static void SetAutomationControlType(UIElement element, AutomationControlType value);
function setAutomationControlType(element, value)
Public Shared Sub SetAutomationControlType (element As UIElement, value As AutomationControlType)
Parameters
- element
- UIElement
The DependencyObject for which to set the property.
- value
- AutomationControlType
The UI Automation control type to set.
Windows requirements
Device family |
Windows 11 (introduced in 10.0.22000.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v14.0)
|