[]
Specifies the type of barcode.
Use this enumeration to identify the barcode symbology represented by an IBarcode instance, such as QRCode, DataMatrix, or PDF417. It includes both two-dimensional and linear barcode types supported by the library.
public enum BarcodeType
Public Enum BarcodeType
worksheet.Range["A1"].Formula = "=BC_QRCODE(\"https://www.example.com\")";
IBarcode barcode = (IBarcode) worksheet.Range["A1"].Value;
BarcodeType type = barcode.CodeType;
bool isQrCode = type == BarcodeType.QRCode;
| Name | Description |
|---|---|
| Codabar | Specifies the Codabar barcode type.
Codabar uses the characters |
| Code128 | Code 128 uses the complete ASCII character set and automatically selects between Code 128 A, B, and C to produce the smallest barcode. |
| Code39 | Specifies the Code 39 barcode type.
Code 39 is a linear barcode that uses numeric characters, uppercase letters,
and special characters such as |
| Code49 | Code 49 is a two-dimensional, high-density stacked barcode. It is used to encode the complete ASCII character set. |
| Code93 | Specifies the Code 93 barcode type.
Code 93 supports uppercase letters, numeric characters, and the special characters
|
| DataMatrix | Data Matrix is a high density, two-dimensional barcode with square modules arranged in a square or rectangular matrix pattern. |
| EAN13 | Specifies the EAN-13 barcode type. EAN-13 uses only numeric characters and encodes 12 digits plus a check digit. If the value contains only 12 digits, the thirteenth digit is calculated automatically. If the value contains 13 digits, the check digit is validated and an error is raised if it is incorrect. |
| EAN8 | EAN-8 uses only numbers (7 numbers and a check digit). |
| GS1_128 | Uses the complete ASCII character set and represents the GS1-128 barcode type. This Code 128 variant uses the FNC1 character in the first character position and encodes data by using a series of Application Identifiers. |
| PDF417 | Pdf417 is a popular high-density 2-dimensional symbology that encodes up to 1108 bytes of information. This barcode consists of a stacked set of smaller barcodes. Encodes the full ASCII character set. Capable of encoding as many as 2725 data characters. |
| QRCode | QRCode is a 2D symbology that is capable of handling numeric, alphanumeric and byte data as well as Japanese kanji and kana characters. This symbology can encode up to 7,366 characters. |