xtd::forms::menu_item::menu_item | ( | const xtd::ustring & | text, |
const xtd::drawing::image & | image, | ||
xtd::forms::menu_item_kind | kind, | ||
bool | checked, | ||
xtd::forms::shortcut | shortcut | ||
) |
Initializes a new instance of the class with a specified caption, image menu item, kind the menu item, checked, and associated shortcut key for the menu item.
text | The caption for the menu item. |
image | A xtd::drawing::image 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. |
shortcut | One of the xtd::forms::shortcut values. |