Matrix2of5OptionsBuilder Class
Builds an Matrix2of5Options object. Chain 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 Matrix2of5OptionsBuilder :
BarcodeOptionsBuilder<Matrix2of5Options, Matrix2of5OptionsBuilder>
Related API Members
The following members return Matrix2of5OptionsBuilder objects:
Remarks
The following code snippet creates the Matrix 2 of 5 barcode and specifies its settings:

using DevExpress.Docs.Barcode;
using DevExpress.Drawing;
using System.Drawing;
var matrixBarcode = Matrix2of5OptionsBuilder.Create()
.WithCalculateChecksum(true)
.WithWideNarrowRatio(3)
.WithBackColor(Color.LightGray)
.WithShowText(false)
.WithPadding(5)
.WithBorderWidth(1)
.WithBorderColor(Color.Blue)
.Build();
var filePath = Path.GetFullPath("matrix2of5_barcode.png");
using var stream = new FileStream(filePath, FileMode.Create);
using var generator = new BarcodeGenerator(matrixBarcode);
generator.Export("12345670", stream, DXImageFormat.Png);
Inheritance
See Also