CADability dotNET
The MenuResource type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| MenuResource | Initializes a new instance of the MenuResource class |
Methods
| Name | Description | |
|---|---|---|
| AddMenuResource |
Adds all subnodes of "CustomMenus" to the standard menu resource (e.g. additional context menus).
| |
| AppendContextMenu |
Appends a context menu from the resource to the provided context menu.
| |
| AppendMenuItem |
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)
| |
| ConcatContextMenu |
Concatenates two context menus (popup menus) and returns the composed object.
| |
| CreateContextMenu |
Creates a new context menu (popup menu) with the provided menu ids.
| |
| FindImageIndex | ||
| FindItem |
Returns the MenuItem with the given ID
| |
| GetEmptyContextMenu |
Returns an empty context menu.
| |
| InsertMenuItem |
Inserts a single menu item into an existing menu.
| |
| InsertPopupMenu |
Inserts a PopupMenu into an existing menu. Usually used to manipulate the main menu of the application.
The ContextMenu "toInsert" is usually loaded with .
| |
| IsPopup |
Returns true if the provided name is a popup menu (context menu)
| |
| LoadContextMenu |
Loads a context menu from the resource and sets the command handler.
| |
| LoadMenu |
Loads a MainMenu from the menu resource with the provided name. For the unmodified standard resource
the menuname will be "SDI Menu"
| |
| RemoveMenuItem |
Remove the menu item from the given menue with the given ID. This work ofcourse
only with menus composed of items of type MenuItemWithID.
| |
| RemoveMenuItems |
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.
| |
| ReplaceMenus |
replaces all popup menus contained in subnodes of "CustomMenus" of the provided document.
| |
| SetMenuResource(Stream) |
Replaces the standard menu resource by the provided XML document
| |
| SetMenuResource(XmlDocument) |
Replaces the standard menu resource by the provided XML document
|