다음을 통해 공유


RibbonButtonGallery 생성자 (String, ICommand, ICommandId, IEnumerable<RibbonGalleryCategory>, ImageSource, ImageSource)

버전 2에 적용

지정된 레이블, 명령, 명령 식별자, 범주 및 이미지를 사용하여 RibbonButtonGallery 클래스의 새 인스턴스를 초기화합니다.

네임스페이스:  Microsoft.WebMatrix.Extensibility
어셈블리:  Microsoft.WebMatrix.Extensibility(Microsoft.WebMatrix.Extensibility.dll)

구문

‘선언
Protected Sub New ( _
    label As String, _
    galleryCommand As ICommand, _
    galleryCommandId As ICommandId, _
    categories As IEnumerable(Of RibbonGalleryCategory), _
    smallImage As ImageSource, _
    largeImage As ImageSource _
)
‘사용 방법
Dim label As String 
Dim galleryCommand As ICommand 
Dim galleryCommandId As ICommandId 
Dim categories As IEnumerable(Of RibbonGalleryCategory)
Dim smallImage As ImageSource 
Dim largeImage As ImageSource 

Dim instance As New RibbonButtonGallery(label, galleryCommand, _
    galleryCommandId, categories, smallImage, _
    largeImage)
protected RibbonButtonGallery(
    string label,
    ICommand galleryCommand,
    ICommandId galleryCommandId,
    IEnumerable<RibbonGalleryCategory> categories,
    ImageSource smallImage,
    ImageSource largeImage
)
protected:
RibbonButtonGallery(
    String^ label, 
    ICommand^ galleryCommand, 
    ICommandId^ galleryCommandId, 
    IEnumerable<RibbonGalleryCategory^>^ categories, 
    ImageSource^ smallImage, 
    ImageSource^ largeImage
)
new : 
        label:string * 
        galleryCommand:ICommand * 
        galleryCommandId:ICommandId * 
        categories:IEnumerable<RibbonGalleryCategory> * 
        smallImage:ImageSource * 
        largeImage:ImageSource -> RibbonButtonGallery
protected function RibbonButtonGallery(
    label : String, 
    galleryCommand : ICommand, 
    galleryCommandId : ICommandId, 
    categories : IEnumerable<RibbonGalleryCategory>, 
    smallImage : ImageSource, 
    largeImage : ImageSource
)

매개 변수

참고 항목

참조

RibbonButtonGallery 클래스

RibbonButtonGallery 오버로드

Microsoft.WebMatrix.Extensibility 네임스페이스