次の方法で共有


RibbonMenuButton.ShouldApplyItemContainerStyle メソッド

指定された項目のコンテナー要素に対して、ItemContainerStyle プロパティまたは ItemContainerStyleSelector プロパティからのスタイルを適用するかどうかを示す値を返します。

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

構文

'宣言
Protected Overrides Function ShouldApplyItemContainerStyle ( _
    container As DependencyObject, _
    item As Object _
) As Boolean
protected override bool ShouldApplyItemContainerStyle(
    DependencyObject container,
    Object item
)
protected:
virtual bool ShouldApplyItemContainerStyle(
    DependencyObject^ container, 
    Object^ item
) override
abstract ShouldApplyItemContainerStyle : 
        container:DependencyObject * 
        item:Object -> bool 
override ShouldApplyItemContainerStyle : 
        container:DependencyObject * 
        item:Object -> bool 
protected override function ShouldApplyItemContainerStyle(
    container : DependencyObject, 
    item : Object
) : boolean

パラメーター

戻り値

型: System.Boolean
container が RibbonSeparator または RibbonGallery の場合は、false。それ以外の場合は、基本実装によって返される値。

.NET Framework セキュリティ

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

参照

参照

RibbonMenuButton クラス

Microsoft.Windows.Controls.Ribbon 名前空間