Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

EAN128Options.Charset Property

Gets or sets the character set used for encoding.

Namespace: DevExpress.BarCodes

Assembly: DevExpress.Docs.v24.2.dll

NuGet Package: DevExpress.Document.Processor

#Declaration

public virtual Code128CharacterSet Charset { get; set; }

#Property Value

Type Description
Code128CharacterSet

A Code128CharacterSet enumeration value that specifies a character set.

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
.EAN128 .Charset

#Remarks

Use the Charset property to specify the set of symbols which can be used when setting the BarCode.CodeText property. If the characters specified for the bar code data are not allowed by the charset, the exception with the message “There are invalid characters in the text” is thrown.

See Also