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

    Contains options specific to PostNet symbology.

    Namespace: DevExpress.Docs.Barcode

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

    Declaration

    public class PostNetOptions :
        BarcodeOptions

    Remarks

    The following code snippet creates a PostNet barcode with 9 digits and specifies its options:

    DevExpress Barcode Generator - PostNet barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var postnetOptions = new PostNetOptions();
    postnetOptions.BackColor = Color.LightGray;
    postnetOptions.ShowText = false;
    postnetOptions.Padding = new Padding(5);
    postnetOptions.BorderWidth = 1;
    postnetOptions.BorderColor = Color.Blue;
    
    using var postnetOptionsStream = new FileStream(Path.Combine(outDir, "barcode_symbology_postnet.png"), FileMode.Create, FileAccess.Write);
    using var postnetOptionsGenerator = new BarcodeGenerator(postnetOptions);
    postnetOptionsGenerator.Export("123456789", postnetOptionsStream, DXImageFormat.Png);
    

    Inheritance

    Object
    BarcodeOptions
    PostNetOptions
    See Also