Share via


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

See Also

Reference

RibbonButtonGallery Class

RibbonButtonGallery Overload

Microsoft.WebMatrix.Extensibility Namespace