BarCodePropertyProvider.CharacterSet Property
Gets or sets the charset type for the barcode. This is a dependency property.
Namespace: DevExpress.Xpf.Editors
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
[ValueSerializer(typeof(XamlEnumSerializer<Code128Charset>))]
public Code128Charset CharacterSet { get; set; }
Property Value
Type | Description |
---|---|
Code128Charset | A Code128Charset enumeration value that specifies a charset to be used. |
Available values:
Name | Description |
---|---|
CharsetA | Includes ASCII characters 00 to 95 (0-9, A-Z and control codes), special characters and FNC 1 (code that is used for special purposes). |
CharsetB | Includes ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1 (code that is used for special purposes). |
CharsetC | Includes ASCII digit strings (00-99) and FNC 1 (code that is used for special purposes). |
CharsetAuto | Uses A, B and C character sets and switches between them automatically according to bar code text. |
Remarks
Use the CharacterSet property to specify the set of symbols which can be used when setting the EditValue property of a Code 128 barcode. If the characters specified in the EditValue property are not allowed by the charset, the corresponding error message will be shown within the barcode. If the CharacterSet property is set to Code128Charset.CharsetAuto, the char sequence is coded using all three character sets, and it switches between them automatically when required.