CADability dotNET

The MenuResource type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAddMenuResource
Adds all subnodes of "CustomMenus" to the standard menu resource (e.g. additional context menus).
Public methodStatic memberAppendContextMenu
Appends a context menu from the resource to the provided context menu.
Public methodStatic memberAppendMenuItem
Appends a menu item to the given popup menu. The inserted item is returned as a MenuItemWithID, so you can further manipulate it (e.g. set image index for an icon)
Public methodStatic memberConcatContextMenu
Concatenates two context menus (popup menus) and returns the composed object.
Public methodStatic memberCreateContextMenu
Creates a new context menu (popup menu) with the provided menu ids.
Public methodStatic memberFindImageIndex
Public methodStatic memberFindItem
Returns the MenuItem with the given ID
Public methodStatic memberGetEmptyContextMenu
Returns an empty context menu.
Public methodStatic memberInsertMenuItem
Inserts a single menu item into an existing menu.
Public methodStatic memberInsertPopupMenu
Inserts a PopupMenu into an existing menu. Usually used to manipulate the main menu of the application. The ContextMenu "toInsert" is usually loaded with .
Public methodStatic memberIsPopup
Returns true if the provided name is a popup menu (context menu)
Public methodStatic memberLoadContextMenu
Loads a context menu from the resource and sets the command handler.
Public methodStatic memberLoadMenu
Loads a MainMenu from the menu resource with the provided name. For the unmodified standard resource the menuname will be "SDI Menu"
Public methodStatic memberRemoveMenuItem
Remove the menu item from the given menue with the given ID. This work ofcourse only with menus composed of items of type MenuItemWithID.
Public methodStatic memberRemoveMenuItems
Remove all menu items from the given menue that have an ID which starts with MenuID. This work ofcourse only with menus composed of items of type MenuItemWithID.
Public methodStatic memberReplaceMenus
replaces all popup menus contained in subnodes of "CustomMenus" of the provided document.
Public methodStatic memberSetMenuResource(Stream)
Replaces the standard menu resource by the provided XML document
Public methodStatic memberSetMenuResource(XmlDocument)
Replaces the standard menu resource by the provided XML document

See Also