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

    Contains options specific to the UPC-E0 symbology.

    Namespace: DevExpress.Docs.Barcode

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

    Declaration

    public class UPCE0Options :
        UPCAOptions

    Remarks

    The following code snippet creates a Universal Product Code (UPC-E0) barcode and specifies its settings:

    DevExpress Barcode Generator - UPC-E0 barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var upce0Options = new UPCE0Options();
    upce0Options.BackColor = Color.LightGray;
    upce0Options.ShowText = false;
    upce0Options.Padding = new Padding(5);
    upce0Options.BorderWidth = 1;
    upce0Options.BorderColor = Color.Blue;
    
    using var upce0OptionsStream = new FileStream(Path.Combine(outDir, "barcode_symbology_upce0.png"), FileMode.Create, FileAccess.Write);
    using var upce0OptionsGenerator = new BarcodeGenerator(upce0Options);
    upce0OptionsGenerator.Export("4210000526", upce0OptionsStream, DXImageFormat.Png);
    
    See Also