xtd 0.2.0
Loading...
Searching...
No Matches

◆ drop_down_menu() [1/3]

std::optional< std::reference_wrapper< xtd::forms::context_menu > > xtd::forms::tool_bar_button::drop_down_menu ( ) const
noexcept

Gets the menu to be displayed in the drop-down toolbar button.

Returns
A xtd::forms::context_menu to be displayed in the drop-down toolbar button. The default is std::nullopt.
Remarks
You can specify a xtd::forms::context_menu to be displayed when the drop-down button is clicked. This property is not used unless the xtd::forms::tool_bar_button::style property value is set to xtd::forms::tool_bar_button_style::drop_down_button.