Adds a new context-sensitive menu to the CommandManager.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function AddContextMenu( _
ByVal UserID As System.Integer, _
ByVal Title As System.String _
) As CommandGroup |
Visual Basic (Usage) | |
---|
Dim instance As ICommandManager
Dim UserID As System.Integer
Dim Title As System.String
Dim value As CommandGroup
value = instance.AddContextMenu(UserID, Title) |
C# | |
---|
CommandGroup AddContextMenu(
System.int UserID,
System.string Title
) |
C++/CLI | |
---|
CommandGroup^ AddContextMenu(
& System.int UserID,
& System.String^ Title
) |
Parameters
- UserID
User-defined ID for this context-sensitive menu
- Title
- Name of the context-sensitive menu to add to the CommandManager
Return Value
Pointer to
ICommandGroup object
Remarks
See Also
Availability
SOLIDWORKS 2006 FCS, Revision Number 14