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

    Contains options specific to EAN8 symbology.

    Namespace: DevExpress.Docs.Barcode

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

    Declaration

    public class EAN8Options :
        BarcodeOptions

    Remarks

    The following code snippet creates an EAN8 barcode and customizes its options:

    DevExpress Barcode Generator - EAN8 barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var ean8Options = new EAN8Options();
    ean8Options.ShowText = true;
    ean8Options.Padding = new Padding(5);
    ean8Options.BorderWidth = 1;
    
    using var ean8OptionsStream = new FileStream(Path.Combine(outDir, "barcode_symbology_ean8.png"), FileMode.Create, FileAccess.Write);
    using var ean8OptionsGenerator = new BarcodeGenerator(ean8Options);
    ean8OptionsGenerator.Export("9638507", ean8OptionsStream, DXImageFormat.Png);
    

    Inheritance

    See Also