TextBoxAutomationPeer.GetPattern(PatternInterface) メソッド

定義

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

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

注釈

の値に応じて、 メソッドが GetPattern 返す内容を次の patternInterface表に示します。

patternInterface の値 戻り値
Value の現在のインスタンス TextBoxAutomationPeerへの参照。
Scroll この ScrollViewerAutomationPeerTextBoxAutomationPeer
Text ITextProvider インターフェイスを実装するオブジェクト。
SynchronizedInput ISynchronizedInputProvider インターフェイスを実装するオブジェクト。

適用対象

こちらもご覧ください