次の方法で共有


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

v2 に適用されます。

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

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

構文

'宣言
Protected Sub New ( _
    label As String, _
    command As ICommand, _
    commandId As ICommandId, _
    commandParameter As Object, _
    smallImage As ImageSource, _
    largeImage As ImageSource _
)
'使用
Dim label As String 
Dim command As ICommand 
Dim commandId As ICommandId 
Dim commandParameter As Object 
Dim smallImage As ImageSource 
Dim largeImage As ImageSource 

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

パラメーター

  • commandParameter
    型: System.Object

    command または CommandId のコマンド パラメーター。

関連項目

参照

RibbonButton クラス

RibbonButton オーバーロード

Microsoft.WebMatrix.Extensibility 名前空間