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
)
パラメーター
label
型: System.Stringラベル。
galleryCommand
型: System.Windows.Input.ICommandコマンド。
galleryCommandId
型: Microsoft.WebMatrix.Extensibility.ICommandIdコマンド識別子。
categories
型: System.Collections.Generic.IEnumerable<RibbonGalleryCategory>カテゴリ。
smallImage
型: System.Windows.Media.ImageSource小さな画像。
largeImage
型: System.Windows.Media.ImageSource大きな画像。