次の方法で共有


RibbonButtonGallery コンストラクター (String, ICommand, ICommandId, IEnumerable<RibbonGalleryCategory>, ImageSource, ImageSource)

v2 に適用されます。

指定されたラベル、コマンド、コマンド識別子、カテゴリ、および画像を使用して、RibbonButtonGallery クラスの新しいインスタンスを初期化します。

名前空間:  Microsoft.WebMatrix.Extensibility
アセンブリ:  Microsoft.WebMatrix.Extensibility (Microsoft.WebMatrix.Extensibility.dll)

構文

'宣言
Protected Sub New ( _
    label As String, _
    galleryCommand As ICommand, _
    galleryCommandId As ICommandId, _
    categories As IEnumerable(Of RibbonGalleryCategory), _
    smallImage As ImageSource, _
    largeImage As ImageSource _
)
'使用
Dim label As String 
Dim galleryCommand As ICommand 
Dim galleryCommandId As ICommandId 
Dim categories As IEnumerable(Of RibbonGalleryCategory)
Dim smallImage As ImageSource 
Dim largeImage As ImageSource 

Dim instance As New RibbonButtonGallery(label, galleryCommand, _
    galleryCommandId, categories, smallImage, _
    largeImage)
protected RibbonButtonGallery(
    string label,
    ICommand galleryCommand,
    ICommandId galleryCommandId,
    IEnumerable<RibbonGalleryCategory> categories,
    ImageSource smallImage,
    ImageSource largeImage
)
protected:
RibbonButtonGallery(
    String^ label, 
    ICommand^ galleryCommand, 
    ICommandId^ galleryCommandId, 
    IEnumerable<RibbonGalleryCategory^>^ categories, 
    ImageSource^ smallImage, 
    ImageSource^ largeImage
)
new : 
        label:string * 
        galleryCommand:ICommand * 
        galleryCommandId:ICommandId * 
        categories:IEnumerable<RibbonGalleryCategory> * 
        smallImage:ImageSource * 
        largeImage:ImageSource -> RibbonButtonGallery
protected function RibbonButtonGallery(
    label : String, 
    galleryCommand : ICommand, 
    galleryCommandId : ICommandId, 
    categories : IEnumerable<RibbonGalleryCategory>, 
    smallImage : ImageSource, 
    largeImage : ImageSource
)

パラメーター

関連項目

参照

RibbonButtonGallery クラス

RibbonButtonGallery オーバーロード

Microsoft.WebMatrix.Extensibility 名前空間