windowsforms-devexpress-dot-xtraeditors-dot-xtraform-39a38744.md
Gets or sets the foreground 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 ForeColor { get; set; }
Public Overrides Property ForeColor As Color
| Type | Description |
|---|---|
| Color |
A Color structure which specifies the foreground 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 ForeColor property’s value is synchronized with the appearance object’s AppearanceObject.ForeColor property.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ForeColor 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.
this.BackColor = element.Color.BackColor;
this.ForeColor = Color.White;
}
Me.BackColor = element.Color.BackColor
Me.ForeColor = Color.White
Else
See Also