officefileapi-devexpress-dot-barcodes-dot-barcode-fdf8db5c.md
Gets or sets the byte array to be coded into certain bar code types.
Namespace : DevExpress.BarCodes
Assembly : DevExpress.Docs.v25.2.dll
NuGet Package : DevExpress.Document.Processor
public byte[] CodeBinaryData { get; set; }
Public Property CodeBinaryData As Byte()
| Type | Description |
|---|---|
| Byte[] |
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.
Note
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.
asp-net-web-forms-grid-display-barcode-in-column/CS/ASPxGridViewBarCode/Default.aspx.cs#L30
barCode.RotationAngle = 0;
barCode.CodeBinaryData = Encoding.Default.GetBytes(barCode.CodeText);
barCode.Options.QRCode.CompactionMode = QRCodeCompactionMode.Byte;
word-document-api-insert-inline-pictures/VB/InlinePictures/Program.vb#L42
barCode.CodeText = "http://www.devexpress.com"
barCode.CodeBinaryData = Text.Encoding.Default.GetBytes(barCode.CodeText)
barCode.Module = 0.5
asp-net-web-forms-grid-display-barcode-in-column/VB/ASPxGridViewBarCode/Default.aspx.vb#L36
barCode.RotationAngle = 0
barCode.CodeBinaryData = Encoding.Default.GetBytes(barCode.CodeText)
barCode.Options.QRCode.CompactionMode = QRCodeCompactionMode.Byte
See Also