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

    Builds an IntelligentMailPackageOptions object. Chain builder methods to configure barcode settings, then call the Build method to create the options object.

    Namespace: DevExpress.Docs.Barcode

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

    Declaration

    public class IntelligentMailPackageOptionsBuilder :
        BarcodeOptionsBuilder<IntelligentMailPackageOptions, IntelligentMailPackageOptionsBuilder>

    The following members return IntelligentMailPackageOptionsBuilder objects:

    Example

    How to: Create an Intelligent Mail Package Barcode with Fluent API

    The following code snippet creates the Intelligent Mail Package barcode and customizes its options:

    DevExpress Barcode Generator - Intelligent Mail Package barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var mailCodeOptions = IntelligentMailPackageOptionsBuilder.Create()
        .WithBackColor(Color.LightGray)
        .WithShowText(false)
        .WithPadding(5)
        .WithBorderWidth(1)
        .WithBorderColor(Color.Blue)
        .Build();
    
    var filePath = Path.GetFullPath("intelligent_mail_barcode.png");
    
    using var stream = new FileStream(filePath, FileMode.Create);
    using var generator = new BarcodeGenerator(mailCodeOptions);
    generator.Export("9212391234567812345671", stream, DXImageFormat.Png);
    
    See Also