Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal text As String, _ ByVal commandName As String, _ ByVal commandArgument As String _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim text As String Dim commandName As String Dim commandArgument As String Dim instance As New MenuItem(text, commandName, commandArgument) |
C# | |
---|---|
public MenuItem( string text, string commandName, string commandArgument ) |
Parameters
- text
- The text.
- commandName
- Name of the command.
- commandArgument
- The command argument.
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6