windowsforms-devexpress-dot-xtraeditors-dot-xtraform-c4330876.md
Gets or sets the background color of the form’s client region.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public override Color BackColor { get; set; }
Public Overrides Property BackColor As Color
| Type | Description |
|---|---|
| Color |
A Color structure which specifies the background color of the form’s client region.
|
The appearance settings used to paint the form’s client region are provided by the XtraForm.Appearance property. This property returns an AppearanceObject object whose properties specify the form’s background and foreground colors, font, etc. The BackColor property’s value is synchronized with the appearance object’s AppearanceObject.BackColor property.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BackColor property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
DevExpress.Skins.SkinElement element = currentSkin[DevExpress.Skins.SchedulerSkins.SkinAllDayAreaSelected];
this.BackColor = element.Color.BackColor;
this.ForeColor = Color.White;
Dim element As DevExpress.Skins.SkinElement = currentSkin(DevExpress.Skins.SchedulerSkins.SkinAllDayAreaSelected)
Me.BackColor = element.Color.BackColor
Me.ForeColor = Color.White
See Also