Back to Devexpress

BrickStyle.ForeColor Property

corelibraries-devexpress-dot-xtraprinting-dot-brickstyle-ba0af583.md

latest4.0 KB
Original Source

BrickStyle.ForeColor Property

Gets or sets the foreground color.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public virtual Color ForeColor { get; set; }
vb
Public Overridable Property ForeColor As Color

Property Value

TypeDescription
Color

The foreground color.

|

Remarks

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

csharp
// Set the foreground color for the bar.
progressBar.BackColor = panel.Style.ForeColor;

wpf-reporting-register-custom-control-in-designer/CS/XRProgressBar.cs#L51

csharp
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

csharp
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

vb
' Set the foreground color for the bar.
progressBar.BackColor = panel.Style.ForeColor

wpf-reporting-register-custom-control-in-designer/VB/XRProgressBar.vb#L63

vb
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

vb
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

BrickStyle Class

BrickStyle Members

DevExpress.XtraPrinting Namespace