xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrbarcode.md
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
[SRCategory(ReportStringId.CatBehavior)]
public BarCodeGeneratorBase Symbology { get; set; }
<SRCategory(ReportStringId.CatBehavior)>
Public Property Symbology As BarCodeGeneratorBase
| Type | Description |
|---|---|
| BarCodeGeneratorBase |
A BarCodeGeneratorBase class descendant which defines the symbology for the current XRBarCode control.
|
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
// Set the bar code's type to Codabar
barCode.Symbology = new CodabarGenerator();
See Also