xtd 0.2.0
Loading...
Searching...
No Matches

◆ clone_menu()

void xtd::forms::menu::clone_menu ( const menu menu_src)
protected

Copies the menu that is passed as a parameter to the current menu.

Parameters
menu_srcThe Menu to copy.
Remarks
This method copies the entire list of menuItem objects (stored in the menu passed in to menu_src) into the current menu. You can use this method in your derived class to clone menu_item objects. They can then be reused by other classes that derive from menu, such as main_menu, context_menu, and menu_item.