Share via


GroupItemAutomationPeer.GetPattern(PatternInterface) メソッド

定義

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

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

列挙値の 1 つ。

戻り値

patternExpandCollapse で、この GroupItemAutomationPeer に関連付けられている GroupItemExpander が含まれている場合、このメソッドは GroupItemAutomationPeer の現在のインスタンスへの参照を返します。 それ以外の場合、このメソッドは基本実装である UIElementAutomationPeer を呼び出して null を返します。

適用対象