officefileapi-devexpress-dot-barcodes-90cb5917.md
Base class for symbology-specific options.
Namespace : DevExpress.BarCodes
Assembly : DevExpress.Docs.v25.2.dll
NuGet Package : DevExpress.Document.Processor
public abstract class BarCodeGeneratorOptions
Public MustInherit Class BarCodeGeneratorOptions
The BarCodeGeneratorOptions class is a base class for all symbology-specific options. Use the BarCode.Options property to access these options.
The example below shows how to create a QR code, specify its options 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);
Imports DevExpress.BarCodes
'...
Dim barCode As 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)
Show 33 items
Object BarCodeGeneratorOptions AztecCodeOptions
See Also