RibbonButtonGallery Constructor (String, ICommand, IEnumerable<RibbonGalleryCategory>, Bitmap, Bitmap)
Applies to v2.
Initializes a new instance of the RibbonButtonGallery class with specified label, command, category, and images.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Public Sub New ( _
label As String, _
galleryCommand As ICommand, _
categories As IEnumerable(Of RibbonGalleryCategory), _
smallImage As Bitmap, _
largeImage As Bitmap _
)
'Usage
Dim label As String
Dim galleryCommand As ICommand
Dim categories As IEnumerable(Of RibbonGalleryCategory)
Dim smallImage As Bitmap
Dim largeImage As Bitmap
Dim instance As New RibbonButtonGallery(label, galleryCommand, _
categories, smallImage, largeImage)
public RibbonButtonGallery(
string label,
ICommand galleryCommand,
IEnumerable<RibbonGalleryCategory> categories,
Bitmap smallImage,
Bitmap largeImage
)
public:
RibbonButtonGallery(
String^ label,
ICommand^ galleryCommand,
IEnumerable<RibbonGalleryCategory^>^ categories,
Bitmap^ smallImage,
Bitmap^ largeImage
)
new :
label:string *
galleryCommand:ICommand *
categories:IEnumerable<RibbonGalleryCategory> *
smallImage:Bitmap *
largeImage:Bitmap -> RibbonButtonGallery
public function RibbonButtonGallery(
label : String,
galleryCommand : ICommand,
categories : IEnumerable<RibbonGalleryCategory>,
smallImage : Bitmap,
largeImage : Bitmap
)
Parameters
label
Type: System.StringThe label.
galleryCommand
Type: System.Windows.Input.ICommandThe gallery command.
categories
Type: System.Collections.Generic.IEnumerable<RibbonGalleryCategory>The categories.
smallImage
Type: System.Drawing.BitmapThe small image.
largeImage
Type: System.Drawing.BitmapThe large image.