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

◆ enabled() [1/2]

bool xtd::forms::tool_bar_button::enabled ( ) const
noexcept

Gets a value indicating whether the button is enabled.

Returns
true if the button is enabled; otherwise, false. The default is true.
Remarks
When the xtd::forms::tool_bar_button::enabled property is set to false, the toolbar button cannot be clicked, and the button's appearance changes. The xtd::drawing::image and xtd::forms::tool_bar_button::text assigned to the button appear grayed out. If the image or text has multiple colors, they display in a monochromatic gray.