Removes a pull-down menu item or an pull-down menu from the specified document frame.
.NET Syntax
Visual Basic (Declaration) | |
---|
Function RemoveMenu( _
ByVal DocType As System.Integer, _
ByVal As System.String, _
ByVal CallbackFcnAndModule As System.String _
) As System.Boolean |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim DocType As System.Integer
Dim MenuItemString As System.String
Dim CallbackFcnAndModule As System.String
Dim value As System.Boolean
value = instance.RemoveMenu(DocType, MenuItemString, CallbackFcnAndModule) |
Parameters
- DocType
- Document type as defined in swDocumentTypes_e
- MenuItemString
Menu string (for example, submenuString@menuString)
- CallbackFcnAndModule
Callback function and module for this menu item as specified when the menu item was added, see Frame::AddMenuItem
NOTE: If you are removing a top-level menu that has no callback function, pass a NULL string.
Return Value
True if the menu item was removed successfully, false if not
Example
Remarks
See Also