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

    Builds an ITF14Options 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 ITF14OptionsBuilder :
        BarcodeOptionsBuilder<ITF14Options, ITF14OptionsBuilder>

    Remarks

    The following code snippet creates the ITF-14 barcode and customizes its options:

    DevExpress Barcode Generator - ITF-14 barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var tF14Options = ITF14OptionsBuilder.Create()
        .WithCalculateChecksum(true)
        .WithWideNarrowRatio(3)
        .WithBackColor(Color.LightGray)
        .WithShowText(false)
        .WithPadding(5)
        .WithBorderWidth(1)
        .WithBorderColor(Color.Blue)
        .Build();
    
    var filePath = Path.GetFullPath("itf14_barcode.png");
    
    using var stream = new FileStream(filePath, FileMode.Create);
    using var generator = new BarcodeGenerator(tF14Options);
    generator.Export("0123456709498765432101234567891", stream, DXImageFormat.Png);
    
    See Also