Back to Devexpress

BarCode.ForeColor Property

officefileapi-devexpress-dot-barcodes-dot-barcode-048c8193.md

latest2.3 KB
Original Source

BarCode.ForeColor Property

Gets or sets the color of bars in the bar code image.

Namespace : DevExpress.BarCodes

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

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

Property Value

TypeDescription
Color

A Color used to paint the bars of the bar code.

|

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.

asp-net-web-forms-grid-display-barcode-in-column/CS/ASPxGridViewBarCode/Default.aspx.cs#L28

csharp
barCode.BackColor = Color.White;
barCode.ForeColor = Color.Black;
barCode.RotationAngle = 0;

asp-net-web-forms-grid-display-barcode-in-column/VB/ASPxGridViewBarCode/Default.aspx.vb#L34

vb
barCode.BackColor = Color.White
barCode.ForeColor = Color.Black
barCode.RotationAngle = 0

See Also

BarCode Class

BarCode Members

DevExpress.BarCodes Namespace