Sdílet prostřednictvím


ToggleButtonAutomationPeer.GetPattern(PatternInterface) Metoda

Definice

Získá řídicí vzor pro ToggleButton to, který je přidružen k tomuto ToggleButtonAutomationPeer.

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

Parametry

patternInterface
PatternInterface

Jedna z hodnot výčtu

Návraty

Object

Pokud patternInterface je Toggle, tato metoda vrátí aktuální instanci ToggleButtonAutomationPeer, jinak null.

Platí pro

Viz také