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

◆ back_color() [2/2]

virtual control & xtd::forms::control::back_color ( const xtd::drawing::color color)
virtual

Sets the background color for the control.

Parameters
colorA xtd::drawing::color that represents the background color of the control. The default is the value of the xtd::forms::control::default_back_color property.
Returns
Current control.
Remarks
The xtd::forms::control::back_color property does not support transparent colors unless the xtd::forms::control_styles::supports_transparent_back_color value of xtd::forms::control_styles is set to true.
The xtd::forms::control::back_color property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a button will have the same xtd::forms::control::back_color as its parent form by default. For more information about ambient properties, see the ambient_properties guide.
Notes to Inheritors
When overriding the xtd::forms::control::back_color property in a derived class, use the base class's xtd::forms::control::back_color property to extend the base implementation. Otherwise, you must provide all the implementation. You are not required to override both the get and set accessors of the xtd::forms::control::back_color property; you can override only one if needed.