Partager via


CommandBarFlyoutCommandBarAutomationProperties.GetControlType Méthode

Définition

Récupère le type de contrôle de l’objet spécifié.

Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application Windows).

public:
 static AutomationControlType GetControlType(UIElement ^ element);
 static AutomationControlType GetControlType(UIElement const& element);
public static AutomationControlType GetControlType(UIElement element);
Public Shared Function GetControlType (element As UIElement) As AutomationControlType

Paramètres

element
UIElement

Objet pour lequel obtenir le type de contrôle.

Retours

Type de contrôle pour l’objet spécifié.

S’applique à