Back to Devexpress

BarCode.Symbology Property

officefileapi-devexpress-dot-barcodes-dot-barcode-80f7b84c.md

latest10.3 KB
Original Source

BarCode.Symbology Property

Gets or sets the bar code type (symbology).

Namespace : DevExpress.BarCodes

Assembly : DevExpress.Docs.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public Symbology Symbology { get; set; }
vb
Public Property Symbology As Symbology

Property Value

TypeDescription
Symbology

A Symbology enumeration member the specifies the current bar code type.

|

Available values:

Show 32 items

NameDescriptionExample
Codabar

Codabar

|

| | Industrial2of5 |

Industrial 2 of 5

|

| | Interleaved2of5 |

Interleaved 2 of 5

|

| | Code39 |

Code 39 (USD-3)

|

| | Code39Extended |

Code 39 Extended

|

| | Code93 |

Code 93

|

| | Code93Extended |

Code 93 Extended

|

| | Code128 |

Code 128

|

| | Code11 |

Code 11 (USD-8)

|

| | CodeMSI |

MSI - Plessey

|

| | PostNet |

PostNet

|

| | EAN13 |

EAN 13

|

| | UPCA |

UPC-A

|

| | EAN8 |

EAN 8

|

| | EAN128 |

EAN-128 (UCC)

|

| | UPCSupplemental2 |

UPC Supplemental 2

|

| | UPCSupplemental5 |

UPC Supplemental 5

|

| | UPCE0 |

UPC-E0

|

| | UPCE1 |

UPC-E1

|

| | Matrix2of5 |

Matrix 2 of 5

|

| | PDF417 |

PDF417

|

| | DataMatrix |

Data Matrix (ECC200)

|

| | QRCode |

QR Code

|

| | QRCodeGS1 |

GS1 - QR Code

|

| | QRCodeEPC |

EPC QR Code

|

| | MicroQRCode |

Micro QR Code

|

| | IntelligentMail |

Intelligent Mail

|

| | DataMatrixGS1 |

GS1- Data Matrix

|

| | DataBar |

GS1 DataBar

|

| | ITF14 |

GS1 DataBar

|

| | SSCC |

Serial Shipping Container Code (SSCC-18)

|

| | AztecCode |

Aztec Code

|

|

Remarks

Refer to the Bar Code Types document for a list of supported symbologies.

The example below shows how to create a QR code and save it as an image.

csharp
using DevExpress.BarCodes;
//...

BarCode barCode = new BarCode();
barCode.Symbology = Symbology.QRCode;
barCode.CodeText = "https://www.devexpress.com/";
barCode.BackColor = Color.White;
barCode.ForeColor = Color.Black;
barCode.RotationAngle = 0;
barCode.CodeBinaryData = Encoding.Default.GetBytes(barCode.CodeText);
barCode.Options.QRCode.CompactionMode = QRCodeCompactionMode.Byte;
barCode.Options.QRCode.ErrorLevel = QRCodeErrorLevel.Q;
barCode.Options.QRCode.ShowCodeText = false;
barCode.DpiX = 72;
barCode.DpiY = 72;
barCode.Module = 2f;

barCode.Save("BarCodeImage.png", System.Drawing.Imaging.ImageFormat.Png);
vb
Imports DevExpress.BarCodes
'...

Dim barCode As New BarCode()
barCode.Symbology = Symbology.QRCode
barCode.CodeText = "https://www.devexpress.com/"
barCode.BackColor = Color.White
barCode.ForeColor = Color.Black
barCode.RotationAngle = 0
barCode.CodeBinaryData = Encoding.Default.GetBytes(barCode.CodeText)
barCode.Options.QRCode.CompactionMode = QRCodeCompactionMode.Byte
barCode.Options.QRCode.ErrorLevel = QRCodeErrorLevel.Q
barCode.Options.QRCode.ShowCodeText = False
barCode.DpiX = 72
barCode.DpiY = 72
barCode.Module = 2F

barCode.Save("BarCodeImage.png", System.Drawing.Imaging.ImageFormat.Png)

The following code snippets (auto-collected from DevExpress Examples) contain references to the Symbology property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-grid-display-barcode-in-column/CS/ASPxGridViewBarCode/Default.aspx.cs#L25

csharp
BarCode barCode = new BarCode();
barCode.Symbology = Symbology.QRCode;
barCode.CodeText = parameter;

word-document-api-insert-inline-pictures/VB/InlinePictures/Program.vb#L40

vb
Dim barCode As DevExpress.BarCodes.BarCode = New DevExpress.BarCodes.BarCode()
barCode.Symbology = DevExpress.BarCodes.Symbology.QRCode
barCode.CodeText = "http://www.devexpress.com"

asp-net-web-forms-grid-display-barcode-in-column/VB/ASPxGridViewBarCode/Default.aspx.vb#L31

vb
Dim barCode As New BarCode()
barCode.Symbology = Symbology.QRCode
barCode.CodeText = parameter

See Also

Symbology

Bar Code Types

BarCode Class

BarCode Members

DevExpress.BarCodes Namespace