RibbonButton Constructor (String, ICommand, Object, Bitmap, Bitmap)
Lo siguiente se aplica a v2.
Inicializa una nueva instancia de la clase RibbonButton.
Espacio de nombres: Microsoft.WebMatrix.Extensibility
Ensamblado: Microsoft.WebMatrix.Extensibility (en Microsoft.WebMatrix.Extensibility.dll)
Sintaxis
'Declaración
Public Sub New ( _
label As String, _
command As ICommand, _
commandParameter As Object, _
smallImage As Bitmap, _
largeImage As Bitmap _
)
'Uso
Dim label As String
Dim command As ICommand
Dim commandParameter As Object
Dim smallImage As Bitmap
Dim largeImage As Bitmap
Dim instance As New RibbonButton(label, command, _
commandParameter, smallImage, largeImage)
public RibbonButton(
string label,
ICommand command,
Object commandParameter,
Bitmap smallImage,
Bitmap largeImage
)
public:
RibbonButton(
String^ label,
ICommand^ command,
Object^ commandParameter,
Bitmap^ smallImage,
Bitmap^ largeImage
)
new :
label:string *
command:ICommand *
commandParameter:Object *
smallImage:Bitmap *
largeImage:Bitmap -> RibbonButton
public function RibbonButton(
label : String,
command : ICommand,
commandParameter : Object,
smallImage : Bitmap,
largeImage : Bitmap
)
Parámetros
label
Tipo: System.StringEtiqueta del elemento.
command
Tipo: System.Windows.Input.ICommandUn comando que se debe invocar cuando se pulsa el botón.
commandParameter
Tipo: System.ObjectUn parámetro de comando para CommandId.
smallImage
Tipo: System.Drawing.BitmapUna imagen 16x16 para el botón.
largeImage
Tipo: System.Drawing.BitmapUna imagen 32x32 para el botón.