Class Code128CharacterSet
Represents the Code 128 character set used for encoding.
Inheritance
Namespace: IronBarCode
Assembly: IronBarCode.dll
Syntax
public sealed class Code128CharacterSet : Enum
Code128CharacterSet selects which Code 128 character set a segment encodes, set on Code128EncodingSegment.CharacterSet to pack data efficiently. CodeA covers control characters, uppercase letters, and special characters, CodeB covers uppercase and lowercase letters, numbers, and special characters, and CodeC encodes numeric pairs from 00 to 99, the most compact option for digit-heavy data. The create 1D barcodes how-to covers writing Code 128.
var segment = new Code128EncodingSegment { CharacterSet = Code128CharacterSet.CodeC };Fields
CodeA
Code Set A: Control characters, uppercase letters, and special characters.
Declaration
public const Code128CharacterSet CodeA
Field Value
| Type | Description |
|---|---|
| Code128CharacterSet |
CodeB
Code Set B: Uppercase and lowercase letters, numbers, and special characters.
Declaration
public const Code128CharacterSet CodeB
Field Value
| Type | Description |
|---|---|
| Code128CharacterSet |
CodeC
Code Set C: Numeric pairs (00-99), most compact for digits.
Declaration
public const Code128CharacterSet CodeC
Field Value
| Type | Description |
|---|---|
| Code128CharacterSet |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |