Back to Devexpress

XRBarCode.Symbology Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrbarcode.md

latest2.7 KB
Original Source

XRBarCode.Symbology Property

Gets or sets the symbology (code type) for the bar code and the text displayed in the XRBarCode control.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
[SRCategory(ReportStringId.CatBehavior)]
public BarCodeGeneratorBase Symbology { get; set; }
vb
<SRCategory(ReportStringId.CatBehavior)>
Public Property Symbology As BarCodeGeneratorBase

Property Value

TypeDescription
BarCodeGeneratorBase

A BarCodeGeneratorBase class descendant which defines the symbology for the current XRBarCode control.

|

Remarks

The symbology determines the bar code’s type including the set of allowable characters. For more information on using the Symbology property and creating bar code at design and runtime, please refer to Adding Bar Codes to Reports.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Symbology 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-add-a-bar-code-to-a-report/CS/Form1.cs#L74

csharp
// Set the bar code's type to Codabar
barCode.Symbology = new CodabarGenerator();

See Also

Use Barcodes

XRBarCode Class

XRBarCode Members

DevExpress.XtraReports.UI Namespace