AutomationProperties.GetAutomationControlType(UIElement) Méthode

Définition

Obtient la valeur de la propriété jointe AutomationProperties.AutomationControlType pour l’objet DependencyObject spécifié.

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

Paramètres

element
UIElement

DependencyObject to case activée.

Retours

Type de contrôle UI Automation pour l’élément spécifié.

Configuration requise pour Windows

Famille d’appareils
Windows 11 (introduit dans 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v14.0)

S’applique à