.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

BarCode.Symbology Property

Gets or sets the bar code type (symbology).

Namespace: DevExpress.BarCodes

Assembly: DevExpress.Docs.v21.1.dll


public Symbology Symbology { get; set; }

Property Value

Type Description

A Symbology enumeration member the specifies the current bar code type.


Refer to the Bar Code Types document for a list of supported symbologies.

The example below shows how to create a QR code and save it as an image.

using DevExpress.BarCodes;

BarCode barCode = new BarCode();
barCode.Symbology = Symbology.QRCode;
barCode.CodeText = "https://www.devexpress.com/";
barCode.BackColor = Color.White;
barCode.ForeColor = Color.Black;
barCode.RotationAngle = 0;
barCode.CodeBinaryData = Encoding.Default.GetBytes(barCode.CodeText);
barCode.Options.QRCode.CompactionMode = QRCodeCompactionMode.Byte;
barCode.Options.QRCode.ErrorLevel = QRCodeErrorLevel.Q;
barCode.Options.QRCode.ShowCodeText = false;
barCode.DpiX = 72;
barCode.DpiY = 72;
barCode.Module = 2f;

barCode.Save("BarCodeImage.png", System.Drawing.Imaging.ImageFormat.Png);
See Also