BarCodeControl.Symbology Property
Gets or sets the symbology (code type) for the bar code and the text.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v24.2.dll
Declaration
[DefaultValue(BarCodeSymbology.Code128)]
[DXCategory("Behavior")]
public BarCodeGeneratorBase Symbology { get; set; }
Property Value
Type | Default | Description |
---|---|---|
BarCodeGeneratorBase | Code128 | A BarCodeGeneratorBase class descendant that defines the symbology for the current BarCodeControl control. |
Remarks
The symbology determines the bar code type including the set of allowed characters. Available bar code types are listed below.
1D Bar Codes
- Codabar
- Code 11 (USD-8)
- Code 39 (USD-3)
- Code 39 Extended
- Code 93
- Code 93 Extended
- Code 128
- EAN 8
- EAN 13
- GS1-128 - EAN-128 (UCC)
- GS1 - DataBar
- Industrial 2 of 5
- Intelligent Mail Package
- Interleaved 2 of 5
- Matrix 2 of 5
- MSI - Plessey
- PostNet
- UPC Shipping Container Symbol (ITF-14)
- UPC Supplemental 2
- UPC Supplemental 5
- UPC-A
- UPC-E0
- UPC-E1
2D Bar Codes
Example
This example illustrates how to use BarCodeControl to display a QR code.
using DevExpress.XtraPrinting.BarCode;
using DevExpress.XtraEditors;
BarCodeControl barCodeControl1 = new BarCodeControl();
barCodeControl1.Parent = this;
barCodeControl1.Size = new System.Drawing.Size(150, 150);
barCodeControl1.AutoModule = true;
barCodeControl1.Text = "1234567890";
QRCodeGenerator symb = new QRCodeGenerator();
barCodeControl1.Symbology = symb;
// Adjust the QR barcode's specific properties.
symb.CompactionMode = QRCodeCompactionMode.AlphaNumeric;
symb.ErrorCorrectionLevel = QRCodeErrorCorrectionLevel.H;
symb.Version = QRCodeVersion.AutoVersion;
See Also