次の方法で共有


RibbonAutomationPeer.GetPattern メソッド

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

名前空間:  Microsoft.Windows.Automation.Peers
アセンブリ:  RibbonControlsLibrary (RibbonControlsLibrary.dll 内)

構文

'宣言
Public Overrides Function GetPattern ( _
    patternInterface As PatternInterface _
) As Object
public override Object GetPattern(
    PatternInterface patternInterface
)
public:
virtual Object^ GetPattern(
    PatternInterface patternInterface
) override
abstract GetPattern : 
        patternInterface:PatternInterface -> Object 
override GetPattern : 
        patternInterface:PatternInterface -> Object 
public override function GetPattern(
    patternInterface : PatternInterface
) : Object

パラメーター

戻り値

型: System.Object
RibbonIsCollapsed プロパティが false で、patternInterface が ExpandCollapseItemContainerScroll、または Selection 値の場合、このメソッドはコントロール パターンをサポートするオブジェクトを返します。それ以外の場合は nullnull 参照 (Visual Basic では Nothing) を返します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

RibbonAutomationPeer クラス

Microsoft.Windows.Automation.Peers 名前空間