xtd::forms::menu_item::menu_item | ( | const xtd::string & | text, |
const std::vector< menu_item_ref > & | items | ||
) |
Initializes a new instance of the class with a specified caption and an array of submenu items defined for the menu item.
text | The caption for the menu item. |
items | An array of menu_item objects that contains the submenu items for this menu item. |