Removes:
.NET Syntax
Visual Basic (Declaration) | |
---|
Function RemoveFromMenu( _
ByVal CommandID As System.Integer, _
ByVal DocumentType As System.Integer, _
ByVal Option As System.Integer, _
ByVal As System.Boolean _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim CommandID As System.Integer
Dim DocumentType As System.Integer
Dim Option As System.Integer
Dim RemoveParentMenu As System.Boolean
Dim value As System.Boolean
value = instance.RemoveFromMenu(CommandID, DocumentType, Option, RemoveParentMenu) |
Parameters
- CommandID
- Command ID of the command to remove as defined by swCommands_e
- DocumentType
- Document types in which to remove the command as defined in swDocumentTypes_e
- Option
- RemoveParentMenu
True to remove the specified command's parent menu, false to not
NOTE: This parameter is specific to menus only; it does not affect toolbars.
Return Value
True if the specified items are removed, false if not
Example
Remarks
See Also
Availability
SolidWorks 2007 SP2, Revision Number 15.2