Code128Options.Charset Property
Gets or sets the charset type for the bar code.
Namespace: DevExpress.BarCodes
Assembly: DevExpress.Docs.v24.1.dll
NuGet Package: DevExpress.Document.Processor
Declaration
Property Value
Type | Description |
---|---|
Code128CharacterSet | A Code128CharacterSet enumeration value that specifies a charset to be used. |
Available values:
Name | Description |
---|---|
CharsetA | The “A” character set will be used for coding a bar code. It contains ASCII characters 00-95. |
CharsetB | The “B” character set will be used for coding a bar code. It contains ASCII characters 32-127. |
CharsetC | The “C” character set will be used for coding a bar code. It contains numeric digit pairs from 00 to 99. Each digit pair is coded with one code element, so you can provide 01 23 pairs for coding, but not 123. |
CharsetAuto | The character set will be chosen automatically according to the text assigned to a bar code. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to Charset |
---|---|
BarCodeOptions |
|
Remarks
Use the Charset property to specify the set of symbols which can be used when setting the BarCode.CodeText property of a Code 128 bar code. If the characters specified in the CodeText property are not allowed by the charset, a Exception exception is thrown with the message “There are invalid characters in the text”.
Note
If the code text may contain any ASCII symbol, set the Charset property value to Code128CharacterSet.CharsetAuto.