다음을 통해 공유


RibbonButton 생성자 (String, ICommand, ICommandId, Object, ImageSource, ImageSource)

버전 2에 적용

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

    명령 또는 CommandId에 대한 명령 매개 변수입니다.

참고 항목

참조

RibbonButton 클래스

RibbonButton 오버로드

Microsoft.WebMatrix.Extensibility 네임스페이스