Share via


ExpanderAutomationPeer.GetPattern(PatternInterface) メソッド

定義

この ExpanderAutomationPeer に関連付けられた Expander のコントロール パターンを取得します。

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

パラメーター

pattern
PatternInterface

列挙値の 1 つ。

戻り値

patternExpandCollapse の場合、このメソッドは ExpanderAutomationPeer の現在のインスタンスへの参照を返します。それ以外の場合は、このメソッドは null を返す UIElementAutomationPeer の基本実装を呼び出します。

適用対象