Skip to main content

BarCode.CodeBinaryData Property

Gets or sets the byte array to be coded into certain bar code types.

Namespace: DevExpress.BarCodes

Assembly: DevExpress.Docs.v24.1.dll


public byte[] CodeBinaryData { get; set; }

Property Value

Type Description

An array of bytes to be coded using the bar code’s symbology.


Use the CodeBinaryData property to code a byte array into a bar code. Only applicable to certain bar code types, such as the Data Matrix (ECC200), GS1- Data Matrix, PDF417 and QR Code bar codes.

If the barcode has both CodeText and CodeBinaryData property specified, the coded text is retrieved from the last specified property.

Set the CompactionMode property (specifically, DataMatrixOptions.CompactionMode or the PDF417Options.CompactionMode, or QRCodeOptions.CompactionMode respectively) to DataMatrixCompactionMode.Binary to use data specified by the CodeBinaryData property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the CodeBinaryData property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also