RibbonSplitButtonGallery コンストラクター (String, ICommand, Object, ICommand, IEnumerable<RibbonGalleryCategory>, ImageSource, ImageSource)
v2 に適用されます。
RibbonSplitButtonGallery クラスの新しいインスタンスを初期化します。
名前空間: Microsoft.WebMatrix.Extensibility
アセンブリ: Microsoft.WebMatrix.Extensibility (Microsoft.WebMatrix.Extensibility.dll)
構文
'宣言
Public Sub New ( _
label As String, _
command As ICommand, _
commandParameter As Object, _
galleryCommand As ICommand, _
categories As IEnumerable(Of RibbonGalleryCategory), _
smallImage As ImageSource, _
largeImage As ImageSource _
)
'使用
Dim label As String
Dim command As ICommand
Dim commandParameter As Object
Dim galleryCommand As ICommand
Dim categories As IEnumerable(Of RibbonGalleryCategory)
Dim smallImage As ImageSource
Dim largeImage As ImageSource
Dim instance As New RibbonSplitButtonGallery(label, command, _
commandParameter, galleryCommand, _
categories, smallImage, largeImage)
public RibbonSplitButtonGallery(
string label,
ICommand command,
Object commandParameter,
ICommand galleryCommand,
IEnumerable<RibbonGalleryCategory> categories,
ImageSource smallImage,
ImageSource largeImage
)
public:
RibbonSplitButtonGallery(
String^ label,
ICommand^ command,
Object^ commandParameter,
ICommand^ galleryCommand,
IEnumerable<RibbonGalleryCategory^>^ categories,
ImageSource^ smallImage,
ImageSource^ largeImage
)
new :
label:string *
command:ICommand *
commandParameter:Object *
galleryCommand:ICommand *
categories:IEnumerable<RibbonGalleryCategory> *
smallImage:ImageSource *
largeImage:ImageSource -> RibbonSplitButtonGallery
public function RibbonSplitButtonGallery(
label : String,
command : ICommand,
commandParameter : Object,
galleryCommand : ICommand,
categories : IEnumerable<RibbonGalleryCategory>,
smallImage : ImageSource,
largeImage : ImageSource
)
パラメーター
label
型: System.String項目のラベル。
command
型: System.Windows.Input.ICommandボタンが押されたときに呼び出されるコマンド。
commandParameter
型: System.Objectコマンドのコマンド パラメーター。
galleryCommand
型: System.Windows.Input.ICommandギャラリー項目が選択されたときに呼び出されるコマンド。
categories
型: System.Collections.Generic.IEnumerable<RibbonGalleryCategory>ギャラリーに表示されるカテゴリのシーケンス。
smallImage
型: System.Windows.Media.ImageSourceボタンの 16x16 画像。
largeImage
型: System.Windows.Media.ImageSourceボタンの 32x32 画像。