AztecCodeOptionsBuilder Class
Builds an AztecCodeOptions object. Use chained builder methods to configure barcode settings, then call the Build method to create the options object.
Namespace: DevExpress.Docs.Barcode
Assembly: DevExpress.Docs.Core.v26.1.dll
Declaration
public class AztecCodeOptionsBuilder :
BarcodeOptionsBuilder<AztecCodeOptions, AztecCodeOptionsBuilder>
Related API Members
The following members return AztecCodeOptionsBuilder objects:
Remarks
The following code snippet creates an Aztec barcode in Fluent API patters and customizes its options:

using DevExpress.Docs.Barcode;
using DevExpress.Drawing;
using System.Drawing;
var aztekOptions = AztecCodeOptionsBuilder.Create()
.WithCompactionMode(AztecCodeCompactionMode.Text)
.WithErrorCorrectionLevel(AztecCodeErrorCorrectionLevel.Level2)
.WithModuleSize(5)
.WithBackColor(Color.LightGray)
.WithShowText(false)
.WithPadding(5)
.WithBorderWidth(1)
.WithBorderColor(Color.Blue)
.Build();
var filePath = Path.GetFullPath("aztec_barcode.png");
using var stream = new FileStream(filePath, FileMode.Create);
using var generator = new BarcodeGenerator(aztekOptions);
generator.Export("https://example.com/ticket/839201", stream, DXImageFormat.Png);
Inheritance
See Also