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

    Contains options specific to the Pharmacode symbology.

    Namespace: DevExpress.Docs.Barcode

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

    Declaration

    public class PharmacodeOptions :
        BarcodeOptions

    Remarks

    The following code sample creates a two-track Pharmacode barcode and specifies its settings:

    DevExpress Barcode Generator - Pharmacode barcode

    using DevExpress.Docs.Barcode;
    using DevExpress.Drawing;
    using System.Drawing;
    
    var pharmaOptions = new PharmacodeOptions();
    pharmaOptions.PharmacodeType = PharmacodeType.TwoTrack;
    pharmaOptions.BackColor = Color.LightGray;
    pharmaOptions.ShowText = false;
    pharmaOptions.Padding = new Padding(5);
    pharmaOptions.BorderWidth = 1;
    pharmaOptions.BorderColor = Color.Blue;
    
    using var pharmaOptionsStream = new FileStream(Path.Combine(outDir, "barcode_symbology_pharmacode.png"), FileMode.Create, FileAccess.Write);
    using var pharmaOptionsGenerator = new BarcodeGenerator(pharmaOptions);
    pharmaOptionsGenerator.Export("123456", pharmaOptionsStream, DXImageFormat.Png);
    

    Inheritance

    Object
    BarcodeOptions
    PharmacodeOptions
    See Also