次の方法で共有


RibbonToggleButton コンストラクター (String, ICommand, Object, Bitmap, Bitmap)

v2 に適用されます。

RibbonToggleButton クラスの新しいインスタンスを初期化します。

名前空間:  Microsoft.WebMatrix.Extensibility
アセンブリ:  Microsoft.WebMatrix.Extensibility (Microsoft.WebMatrix.Extensibility.dll)

構文

'宣言
Public Sub New ( _
    label As String, _
    command As ICommand, _
    commandParameter As Object, _
    smallImage As Bitmap, _
    largeImage As Bitmap _
)
'使用
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
)

パラメーター

  • commandParameter
    型: System.Object

    CommandId のコマンド パラメーター。

関連項目

参照

RibbonToggleButton クラス

RibbonToggleButton オーバーロード

Microsoft.WebMatrix.Extensibility 名前空間