次の方法で共有


RibbonButton コンストラクター (String, ICommandId, Object, Bitmap, Bitmap)

v2 に適用されます。

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

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

構文

'宣言
Public Sub New ( _
    label As String, _
    commandId As ICommandId, _
    commandParameter As Object, _
    smallImage As Bitmap, _
    largeImage As Bitmap _
)
'使用
Dim label As String 
Dim commandId As ICommandId 
Dim commandParameter As Object 
Dim smallImage As Bitmap 
Dim largeImage As Bitmap 

Dim instance As New RibbonButton(label, commandId, _
    commandParameter, smallImage, largeImage)
public RibbonButton(
    string label,
    ICommandId commandId,
    Object commandParameter,
    Bitmap smallImage,
    Bitmap largeImage
)
public:
RibbonButton(
    String^ label, 
    ICommandId^ commandId, 
    Object^ commandParameter, 
    Bitmap^ smallImage, 
    Bitmap^ largeImage
)
new : 
        label:string * 
        commandId:ICommandId * 
        commandParameter:Object * 
        smallImage:Bitmap * 
        largeImage:Bitmap -> RibbonButton
public function RibbonButton(
    label : String, 
    commandId : ICommandId, 
    commandParameter : Object, 
    smallImage : Bitmap, 
    largeImage : Bitmap
)

パラメーター

  • commandParameter
    型: System.Object

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

関連項目

参照

RibbonButton クラス

RibbonButton オーバーロード

Microsoft.WebMatrix.Extensibility 名前空間