Back to Devexpress

TextBrickBase.ForeColor Property

corelibraries-devexpress-dot-xtraprinting-dot-textbrickbase-b46275aa.md

latest2.3 KB
Original Source

TextBrickBase.ForeColor Property

Gets or sets the color of the text displayed in the current brick.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

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

Property Value

TypeDescription
Color

A Color which represents the text color in the current brick.

|

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.

reporting-winforms-custom-brick/CS/MyBrick.cs#L46

csharp
base.OnSetPrintingSystem(cacheStyle);
base.ForeColor = Color.Blue;
base.Sides = BorderSide.None;

reporting-winforms-custom-brick/VB/MyBrick.vb#L46

vb
MyBase.OnSetPrintingSystem(cacheStyle)
MyBase.ForeColor = Color.Blue
MyBase.Sides = BorderSide.None

See Also

TextBrickBase Class

TextBrickBase Members

DevExpress.XtraPrinting Namespace