RibbonSplitButtonGallery Constructor (String, ICommandId, Object, ICommandId, IEnumerable<RibbonGalleryCategory>, Bitmap, Bitmap)
Applies to v2.
Initializes a new instance of the RibbonSplitButtonGallery class.
Namespace: Microsoft.WebMatrix.Extensibility
Assembly: Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)
Syntax
'Declaration
Public Sub New ( _
label As String, _
commandId As ICommandId, _
commandParameter As Object, _
galleryCommandId As ICommandId, _
categories As IEnumerable(Of RibbonGalleryCategory), _
smallImage As Bitmap, _
largeImage As Bitmap _
)
'Usage
Dim label As String
Dim commandId As ICommandId
Dim commandParameter As Object
Dim galleryCommandId As ICommandId
Dim categories As IEnumerable(Of RibbonGalleryCategory)
Dim smallImage As Bitmap
Dim largeImage As Bitmap
Dim instance As New RibbonSplitButtonGallery(label, commandId, _
commandParameter, galleryCommandId, _
categories, smallImage, largeImage)
public RibbonSplitButtonGallery(
string label,
ICommandId commandId,
Object commandParameter,
ICommandId galleryCommandId,
IEnumerable<RibbonGalleryCategory> categories,
Bitmap smallImage,
Bitmap largeImage
)
public:
RibbonSplitButtonGallery(
String^ label,
ICommandId^ commandId,
Object^ commandParameter,
ICommandId^ galleryCommandId,
IEnumerable<RibbonGalleryCategory^>^ categories,
Bitmap^ smallImage,
Bitmap^ largeImage
)
new :
label:string *
commandId:ICommandId *
commandParameter:Object *
galleryCommandId:ICommandId *
categories:IEnumerable<RibbonGalleryCategory> *
smallImage:Bitmap *
largeImage:Bitmap -> RibbonSplitButtonGallery
public function RibbonSplitButtonGallery(
label : String,
commandId : ICommandId,
commandParameter : Object,
galleryCommandId : ICommandId,
categories : IEnumerable<RibbonGalleryCategory>,
smallImage : Bitmap,
largeImage : Bitmap
)
Parameters
label
Type: System.StringLabel for the item.
commandId
Type: Microsoft.WebMatrix.Extensibility.ICommandIdA command ID to invoke when the button is pressed.
commandParameter
Type: System.ObjectA command parameter for command.
galleryCommandId
Type: Microsoft.WebMatrix.Extensibility.ICommandIdA command ID to invoke when a gallery item is selected.
categories
Type: System.Collections.Generic.IEnumerable<RibbonGalleryCategory>A sequence of categories to show in the gallery.
smallImage
Type: System.Drawing.BitmapA 16x16 image for the button.
largeImage
Type: System.Drawing.BitmapA 32x32 image for the button.
See Also
Reference
RibbonSplitButtonGallery Class