officefileapi-devexpress-dot-barcodes-ad7f2b09.md
Contains options specific to the Aztec Code symbology.
Namespace : DevExpress.BarCodes
Assembly : DevExpress.Docs.v25.2.dll
NuGet Package : DevExpress.Document.Processor
public class AztecCodeOptions :
BarCodeGeneratorOptions
Public Class AztecCodeOptions
Inherits BarCodeGeneratorOptions
The following members return AztecCodeOptions objects:
The following code creates an Aztec Code:
using DevExpress.BarCodes;
using DevExpress.Drawing;
using System.Diagnostics;
// Create an Aztec Code.
BarCode barCode = new BarCode();
barCode.Symbology = Symbology.AztecCode;
barCode.CodeText = "0123-456789";
barCode.Options.AztecCode.ErrorLevel = AztecCodeErrorLevel.Level1;
barCode.Options.AztecCode.Version = AztecCodeVersion.Version45x45;
// Save the barcode as an image.
barCode.Save("BarCodeImage.png", DXImageFormat.Png);
// Open the image in the default viewer.
Process.Start(new ProcessStartInfo("BarCodeImage.png") { UseShellExecute = true });
Imports DevExpress.BarCodes
Imports DevExpress.Drawing
Imports System.Diagnostics
' Create an Aztec Code.
Dim barCode As New BarCode()
barCode.Symbology = Symbology.AztecCode
barCode.CodeText = "0123-456789"
barCode.Options.AztecCode.ErrorLevel = AztecCodeErrorLevel.Level1
barCode.Options.AztecCode.Version = AztecCodeVersion.Version45x45
' Save the barcode as an image.
barCode.Save("BarCodeImage.png", DXImageFormat.Png)
' Open the image in the default viewer.
Process.Start(New ProcessStartInfo("BarCodeImage.png") With {.UseShellExecute = True})
Object BarCodeGeneratorOptions AztecCodeOptions
See Also