corelibraries-devexpress-dot-xtraprinting-dot-brickstyle-ba0af583.md
Gets or sets the foreground color.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public virtual Color ForeColor { get; set; }
Public Overridable Property ForeColor As Color
| Type | Description |
|---|---|
| Color |
The foreground color.
|
The foreground color is typically used for drawing text, for instance in a TextBrick.
The following code snippets (auto-collected from DevExpress Examples) contain references 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.
reporting-winforms-custom-progress-bar-control/CS/ProgressBar.cs#L102
// Set the foreground color for the bar.
progressBar.BackColor = panel.Style.ForeColor;
wpf-reporting-register-custom-control-in-designer/CS/XRProgressBar.cs#L51
progressBar.Sides = BorderSide.None;
progressBar.BackColor = panel.Style.ForeColor;
progressBar.Rect = new RectangleF(0, 0, panel.Rect.Width * (Position / MaxValue),
reporting-wpf-report-designer-customize-controls-smart-tag/CS/XRProgressBar.cs#L52
progressBar.Sides = BorderSide.None;
progressBar.BackColor = panel.Style.ForeColor;
progressBar.Rect = new RectangleF(0, 0, panel.Rect.Width * (Progress / MaxValue),
reporting-winforms-custom-progress-bar-control/VB/ProgressBar.vb#L100
' Set the foreground color for the bar.
progressBar.BackColor = panel.Style.ForeColor
wpf-reporting-register-custom-control-in-designer/VB/XRProgressBar.vb#L63
progressBar.Sides = BorderSide.None
progressBar.BackColor = panel.Style.ForeColor
progressBar.Rect = New RectangleF(0, 0, panel.Rect.Width * (Position / MaxValue), panel.Rect.Height)
reporting-wpf-report-designer-customize-controls-smart-tag/VB/XRProgressBar.vb#L65
progressBar.Sides = BorderSide.None
progressBar.BackColor = panel.Style.ForeColor
progressBar.Rect = New RectangleF(0, 0, panel.Rect.Width * (Progress / MaxValue), panel.Rect.Height)
See Also