Udostępnij za pośrednictwem


AutomationProperties.SetAutomationControlType Method

Definition

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)

Applies to