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

    Contains options specific to this symbology (bar code type).

    Namespace: DevExpress.BarCodes

    Assembly: DevExpress.Docs.v26.1.dll

    Declaration

    public class QRCodeGS1Options :
        QRCodeOptions

    The following members return QRCodeGS1Options objects:

    Remarks

    Note

    This documentation describes the legacy Barcode Generation API. For new projects, use the DevExpress.Docs.Barcode.BarcodeGenerator class in the DevExpress.Docs.Barcode namespace. To upgrade an existing project to the updated scheduler control, refer to the Migration Guide.

    Access the QRCodeGS1Options object with the QRCodeGS1 property.

    following code snippet creates a GS1 QR code and displays it in a PictureBox.

    using DevExpress.BarCodes;
    using DevExpress.Drawing.Extensions;
    using System;
    using System.Drawing;
    using System.Windows.Forms;
    
    //...
    
    private void button1_Click(object sender, EventArgs e)
    {
        this.pictureBox1.Image = null;
    
        BarCode barCode = new BarCode();
        barCode.Symbology = Symbology.QRCodeGS1;
        barCode.CodeText = "0123456789";
        barCode.BackColor = Color.White;
        barCode.ForeColor = Color.Black;
        barCode.RotationAngle = 0;
        barCode.Options.QRCodeGS1.CompactionMode = DevExpress.BarCodes.QRCodeCompactionMode.AlphaNumeric;
        barCode.Options.QRCodeGS1.ErrorLevel = QRCodeErrorLevel.H;
        barCode.Options.QRCodeGS1.ShowCodeText = false;
        barCode.Options.QRCodeGS1.FNC1Substitute = "#";
        barCode.DpiX = 72;
        barCode.DpiY = 72;
        barCode.Module = 2f;
    
        this.pictureBox1.Image = barCode.BarCodeImage.ConvertToGdiPlusImage();
    }
    

    Inheritance

    See Also