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 Integer, _
ByVal As String, _
ByVal CallbackFcnAndModule As String _
) As Boolean |
Visual Basic (Usage) | |
---|
Dim instance As ISldWorks
Dim DocType As Integer
Dim MenuItemString As String
Dim CallbackFcnAndModule As String
Dim value As 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