Share via


RichTextBoxAutomationPeer.GetPattern(PatternInterface) メソッド

定義

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

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

列挙体の値。

戻り値

Object

patternInterfaceText の場合、このメソッドは ITextProvider 参照を返します。 patternInterfaceScroll の場合、このメソッドは新しい ScrollViewerAutomationPeer を返します。

適用対象

こちらもご覧ください