Partage via


ExpanderAutomationPeer.GetPattern(PatternInterface) Méthode

Définition

Obtient le modèle de contrôle pour le Expander associé à ce ExpanderAutomationPeer.

public:
 override System::Object ^ GetPattern(System::Windows::Automation::Peers::PatternInterface pattern);
public override object GetPattern (System.Windows.Automation.Peers.PatternInterface pattern);
override this.GetPattern : System.Windows.Automation.Peers.PatternInterface -> obj
Public Overrides Function GetPattern (pattern As PatternInterface) As Object

Paramètres

pattern
PatternInterface

Une des valeurs de l'énumération.

Retours

Si pattern est ExpandCollapse, cette méthode retourne une référence à l’instance actuelle de l’élément ExpanderAutomationPeer ; sinon, cette méthode appelle l’implémentation de base sur UIElementAutomationPeer qui retourne null.

S’applique à