ItemAutomationPeer.GetPattern(PatternInterface) メソッド

定義

このオートメーション ピアに関連付けられている要素の指定されたコントロール パターンをサポートするオブジェクトを返します。

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がサポートされている値の場合はコントロール パターンをサポートするオブジェクト。それ以外の場合はnull

注釈

patternInterfacePatternInterface.VirtualizedItemされ、項目がビジュアル ツリーにない場合、このメソッドはthis ポインターを返します。 patternInterface PatternInterface.SynchronizedInput等しい場合、このメソッドは、ISynchronizedInputProvider インターフェイスを実装するオブジェクトを返します。

適用対象