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

    Builds a Code39ExtendedOptions object. Use chained 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 Code39ExtendedOptionsBuilder :
        BarcodeOptionsBuilder<Code39ExtendedOptions, Code39ExtendedOptionsBuilder>

    Remarks

    The following code snippet creates an Code 39 Extended barcode and customizes its options:

    DevExpress Barcode Generator - Code 39 Extended barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var code39ExtOptions = code39ExtOptionsBuilder.Create()
        .WithShowText(true)
        .WithPadding(5)
        .WithBorderWidth(1)
        .WithWideNarrowRatio(3.0f)
        .WithCalculateChecksum(true)
        .Build();
    
    using var code39ExtOptionsStream = new FileStream(Path.Combine(outDir, "barcode_symbology_code39_extended.png"), FileMode.Create, FileAccess.Write);
    using var code39ExtOptionsGenerator = new BarcodeGenerator(code39ExtOptions);
    
    code39ExtOptionsGenerator.Export("Code39 ext: !@#$%", code39ExtOptionsStream, DXImageFormat.Png);
    
    See Also