RibbonButtonGallery コンストラクター (String, ICommandId, IEnumerable<RibbonGalleryCategory>, ImageSource, ImageSource)
v2 に適用されます。
指定されたラベル、コマンド識別子、カテゴリ、および画像を使用して、RibbonButtonGallery クラスの新しいインスタンスを初期化します。
名前空間: Microsoft.WebMatrix.Extensibility
アセンブリ: Microsoft.WebMatrix.Extensibility (Microsoft.WebMatrix.Extensibility.dll)
構文
'宣言
Public Sub New ( _
label As String, _
galleryCommandId As ICommandId, _
categories As IEnumerable(Of RibbonGalleryCategory), _
smallImage As ImageSource, _
largeImage As ImageSource _
)
'使用
Dim label As String
Dim galleryCommandId As ICommandId
Dim categories As IEnumerable(Of RibbonGalleryCategory)
Dim smallImage As ImageSource
Dim largeImage As ImageSource
Dim instance As New RibbonButtonGallery(label, galleryCommandId, _
categories, smallImage, largeImage)
public RibbonButtonGallery(
string label,
ICommandId galleryCommandId,
IEnumerable<RibbonGalleryCategory> categories,
ImageSource smallImage,
ImageSource largeImage
)
public:
RibbonButtonGallery(
String^ label,
ICommandId^ galleryCommandId,
IEnumerable<RibbonGalleryCategory^>^ categories,
ImageSource^ smallImage,
ImageSource^ largeImage
)
new :
label:string *
galleryCommandId:ICommandId *
categories:IEnumerable<RibbonGalleryCategory> *
smallImage:ImageSource *
largeImage:ImageSource -> RibbonButtonGallery
public function RibbonButtonGallery(
label : String,
galleryCommandId : ICommandId,
categories : IEnumerable<RibbonGalleryCategory>,
smallImage : ImageSource,
largeImage : ImageSource
)
パラメーター
label
型: System.Stringラベル。
galleryCommandId
型: Microsoft.WebMatrix.Extensibility.ICommandIdコマンド識別子。
categories
型: System.Collections.Generic.IEnumerable<RibbonGalleryCategory>カテゴリ。
smallImage
型: System.Windows.Media.ImageSource小さな画像。
largeImage
型: System.Windows.Media.ImageSource大きな画像。