Skip to main content
.NET Framework 4.5.2+

Code128Options.Charset Property

Gets or sets the charset type for the bar code.

Namespace: DevExpress.BarCodes

Assembly: DevExpress.Docs.v22.2.dll


public Code128CharacterSet Charset { get; set; }

Property Value

Type Description

A Code128CharacterSet enumeration value that specifies a charset to be used.

Property Paths

You can access this nested property as listed below:

Object Type Path to Charset


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”.


If the code text may contain any ASCII symbol, set the Charset property value to Code128CharacterSet.CharsetAuto.

See Also