xtd::forms::menu_item::menu_item | ( | const xtd::ustring & | text, |
xtd::event_handler | on_click, | ||
xtd::forms::menu_item_kind | kind, | ||
bool | checked | ||
) |
Initializes a new instance of the class with a specified caption, event handler, kind the menu item and checked.
text | The caption for the menu item. |
on_click | The event_handler that handles the Click event for this menu item. |
kind | One of the xtd::forms::menu_item_kind value. |
checked | true if there is a check mark next to the menu item; otherwise, false. The default is false. |