Back to Devexpress

XtraForm.BackColor Property

windowsforms-devexpress-dot-xtraeditors-dot-xtraform-c4330876.md

latest3.4 KB
Original Source

XtraForm.BackColor Property

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

Declaration

csharp
public override Color BackColor { get; set; }
vb
Public Overrides Property BackColor As Color

Property Value

TypeDescription
Color

A Color structure which specifies the background color of the form’s client region.

|

Remarks

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.

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/CS/SchedulerInplaceEditorExample/MyInplaceEditor.cs#L30

csharp
DevExpress.Skins.SkinElement element = currentSkin[DevExpress.Skins.SchedulerSkins.SkinAllDayAreaSelected];
this.BackColor = element.Color.BackColor;
this.ForeColor = Color.White;

how-to-implement-a-custom-inplace-editor-for-appointments-e4826/VB/SchedulerInplaceEditorExample/MyInplaceEditor.vb#L32

vb
Dim element As DevExpress.Skins.SkinElement = currentSkin(DevExpress.Skins.SchedulerSkins.SkinAllDayAreaSelected)
Me.BackColor = element.Color.BackColor
Me.ForeColor = Color.White

See Also

Appearance

XtraForm Class

XtraForm Members

DevExpress.XtraEditors Namespace