222 template<
typename delegate_type>
224 template<
typename delegate_type>
226 template<
typename delegate_type>
228 template<
typename delegate_type>
230 template<
typename delegate_type>
232 template<
typename delegate_type>
234 template<
typename delegate_type>
236 template<
typename delegate_type>
238 template<
typename delegate_type>
240 template<
typename delegate_type>
241 menu_item(
const xtd::string& text, delegate_type on_click,
const xtd::drawing::image& image,
xtd::forms::menu_item_kind kind,
bool checked,
xtd::forms::shortcut shortcut) : menu_item(
text, xtd::
event_handler(on_click), image, kind,
checked,
shortcut) {}
242 menu_item(
const xtd::string& text,
const std::initializer_list<const_menu_item_ref>& items);
266 [[nodiscard]] auto
checked() const noexcept ->
bool;
274 [[nodiscard]] auto
enabled() const noexcept ->
bool;
280 [[nodiscard]] auto
is_parent() const noexcept ->
bool override;
302 [[nodiscard]] auto
text() const noexcept -> const
xtd::
string&;
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
generic_event_handler< const xtd::event_args & > event_handler
Represents the method that will handle an event that has no event data.
Definition event_handler.hpp:24
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
Contains classes that represent ASCII and Unicode character encodings; abstract base classes for conv...
Definition basic_string_builder.hpp:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197