ContextMenuItem 생성자
버전 2에 적용
ContextMenuItem 클래스의 새 인스턴스를 초기화합니다.
네임스페이스: Microsoft.WebMatrix.Extensibility
어셈블리: Microsoft.WebMatrix.Extensibility(Microsoft.WebMatrix.Extensibility.dll)
구문
‘선언
Public Sub New ( _
label As String, _
icon As ImageSource, _
command As ICommand, _
commandParameter As Object _
)
‘사용 방법
Dim label As String
Dim icon As ImageSource
Dim command As ICommand
Dim commandParameter As Object
Dim instance As New ContextMenuItem(label, icon, _
command, commandParameter)
public ContextMenuItem(
string label,
ImageSource icon,
ICommand command,
Object commandParameter
)
public:
ContextMenuItem(
String^ label,
ImageSource^ icon,
ICommand^ command,
Object^ commandParameter
)
new :
label:string *
icon:ImageSource *
command:ICommand *
commandParameter:Object -> ContextMenuItem
public function ContextMenuItem(
label : String,
icon : ImageSource,
command : ICommand,
commandParameter : Object
)
매개 변수
label
유형: System.String항목의 레이블입니다.
icon
유형: System.Windows.Media.ImageSource항목의 16x16 이미지입니다.
command
유형: System.Windows.Input.ICommand항목이 선택될 때 호출할 명령입니다.
commandParameter
유형: System.Object명령에 대한 매개 변수입니다.