RibbonToggleButton Constructor (String, ICommand, Object, Bitmap, Bitmap)
Lo siguiente se aplica a v2.
Inicializa una nueva instancia de la clase RibbonToggleButton.
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 RibbonToggleButton(label, command, _
commandParameter, smallImage, largeImage)
public RibbonToggleButton(
string label,
ICommand command,
Object commandParameter,
Bitmap smallImage,
Bitmap largeImage
)
public:
RibbonToggleButton(
String^ label,
ICommand^ command,
Object^ commandParameter,
Bitmap^ smallImage,
Bitmap^ largeImage
)
new :
label:string *
command:ICommand *
commandParameter:Object *
smallImage:Bitmap *
largeImage:Bitmap -> RibbonToggleButton
public function RibbonToggleButton(
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.