Skip to main content
All docs
V26.1
  • Industrial2of5Options Class

    Contains options specific to Industrial 2 of 5 symbology.

    Namespace: DevExpress.Docs.Barcode

    Assembly: DevExpress.Docs.Core.v26.1.dll

    Declaration

    public class Industrial2of5Options :
        BarcodeOptions

    Remarks

    The following code snippet creates the Industrial 2 of 5 barcode and customizes its options:

    DevExpress Barcode Generator - Industrial 2 of 5 barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var ind2of5Options = new Industrial2of5Options();
    ind2of5Options.CalculateChecksum = true;
    ind2of5Options.WideNarrowRatio = 3;
    ind2of5Options.BackColor = Color.LightGray;
    ind2of5Options.ShowText = false;
    ind2of5Options.Padding = new Padding(5);
    ind2of5Options.BorderWidth = 1;
    ind2of5Options.BorderColor = Color.Blue;
    
    using var ind2of5OptionsStream = new FileStream(Path.Combine(outDir, "barcode_symbology_industrial_2of5.png"), FileMode.Create, FileAccess.Write);
    using var ind2of5OptionsGenerator = new BarcodeGenerator(ind2of5Options);
    ind2of5OptionsGenerator.Export("12345670", ind2of5OptionsStream, DXImageFormat.Png);
    

    Inheritance

    See Also