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

◆ enabled() [2/2]

tool_bar_button & xtd::forms::tool_bar_button::enabled ( bool  value)

Sets a value indicating whether the button is enabled.

Parameters
valuetrue if the button is enabled; otherwise, false. The default is true.
Returns
This current instance.
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.