xtd::forms::menu_item::menu_item | ( | const xtd::ustring & | text, |
xtd::event_handler | on_click, | ||
const xtd::drawing::image & | image, | ||
xtd::forms::shortcut | shortcut | ||
) |
Initializes a new instance of the class with a specified caption, event handler, and image menu item, and associated shortcut key for the menu item.
text | The caption for the menu item. |
on_click | The event_handler that handles the Click event for this menu item. |
image | A xtd::drawing::image menu item. |
shortcut | One of the xtd::forms::shortcut values. |