ExpanderAutomationPeer.GetPattern(PatternInterface) メソッド

定義

このExpanderに関連付けられている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

パラメーター

pattern
PatternInterface

列挙値の 1 つ。

返品

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

適用対象