AutomationProperties.SetAutomationControlType Method

Definition

Sets the Microsoft.UI.Xaml.Automation.Peers.AutomationControlType for the specified UI element.

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 UI element for which to set the UI Automation control type.

Applies to