語言

ToggleButtonAutomationPeer.GetPattern(PatternInterface) 方法

定義

取得與此ToggleButton相關聯的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

參數

patternInterface
PatternInterface

其中一個列舉值。

傳回

若 patternInterface , Toggle則 回傳 的當前實例 ToggleButtonAutomationPeer,否則 null。

適用於

另請參閱