RibbonButton コンストラクター (String, ICommandId, Object, ImageSource, ImageSource)
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 ImageSource, _
largeImage As ImageSource _
)
'使用
Dim label As String
Dim commandId As ICommandId
Dim commandParameter As Object
Dim smallImage As ImageSource
Dim largeImage As ImageSource
Dim instance As New RibbonButton(label, commandId, _
commandParameter, smallImage, largeImage)
public RibbonButton(
string label,
ICommandId commandId,
Object commandParameter,
ImageSource smallImage,
ImageSource largeImage
)
public:
RibbonButton(
String^ label,
ICommandId^ commandId,
Object^ commandParameter,
ImageSource^ smallImage,
ImageSource^ largeImage
)
new :
label:string *
commandId:ICommandId *
commandParameter:Object *
smallImage:ImageSource *
largeImage:ImageSource -> RibbonButton
public function RibbonButton(
label : String,
commandId : ICommandId,
commandParameter : Object,
smallImage : ImageSource,
largeImage : ImageSource
)
パラメーター
label
型: System.String項目のラベル。
commandId
型: Microsoft.WebMatrix.Extensibility.ICommandIdボタンが押されたときに呼び出される CommandId。
commandParameter
型: System.ObjectCommandId のコマンド パラメーター。
smallImage
型: System.Windows.Media.ImageSourceボタンの 16x16 画像。
largeImage
型: System.Windows.Media.ImageSourceボタンの 32x32 画像。