Matrix2of5Options Class
Contains options specific to the Matrix 2 of 5 symbology.
Namespace: DevExpress.Docs.Barcode
Assembly: DevExpress.Docs.Core.v26.1.dll
Declaration
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 mat2of5Options = new Matrix2of5Options();
mat2of5Options.CalculateChecksum = true;
mat2of5Options.WideNarrowRatio = 3;
mat2of5Options.BackColor = Color.LightGray;
mat2of5Options.ShowText = false;
mat2of5Options.Padding = new Padding(5);
mat2of5Options.BorderWidth = 1;
mat2of5Options.BorderColor = Color.Blue;
using var mat2of5OptionsStream = new FileStream(Path.Combine(outDir, "barcode_symbology_matrix_2of5.png"), FileMode.Create, FileAccess.Write);
using var mat2of5OptionsGenerator = new BarcodeGenerator(mat2of5Options);
mat2of5OptionsGenerator.Export("12345670", mat2of5OptionsStream, DXImageFormat.Png);
Inheritance
Object
BarcodeOptions
Industrial2of5Options
Matrix2of5Options
See Also