Share via


ExpanderAutomationPeer.GetPattern(PatternInterface) Metoda

Definice

Získá řídicí vzor pro Expander , který je přidružen k tomuto 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

Parametry

pattern
PatternInterface

Jedna z hodnot výčtu

Návraty

Pokud pattern je ExpandCollapse, vrátí tato metoda odkaz na aktuální instanci objektu ExpanderAutomationPeer, jinak tato metoda volá základní implementaci, která UIElementAutomationPeer vrací null.

Platí pro