Share via


RibbonMenuItemDataAutomationPeer.GetPattern(PatternInterface) メソッド

定義

RibbonMenuItemDataAutomationPeer に関連付けられている RibbonTab のコントロール パターンを取得します。

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

注釈

次のいずれかのケースが発生した場合、このメソッドは、指定されたコントロール パターンをサポートする オブジェクトを返します。

適用対象