officefileapi-devexpress-dot-barcodes-dot-barcode-27e2ed5d.md
Gets or sets the text to be coded using the bar code symbology.
Namespace : DevExpress.BarCodes
Assembly : DevExpress.Docs.v25.2.dll
NuGet Package : DevExpress.Document.Processor
public string CodeText { get; set; }
Public Property CodeText As String
| Type | Description |
|---|---|
| String |
A string containing the text represented by a bar code.
|
For Data Matrix (ECC200), GS1- Data Matrix, PDF417 and QR Code bar codes, use the BarCode.CodeBinaryData property to specify the byte array instead of text.
If the barcode has both CodeText and CodeBinaryData property specified, the coded text is retrieved from the last specified property.
The following code snippets (auto-collected from DevExpress Examples) contain references to the CodeText 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#L26
barCode.Symbology = Symbology.QRCode;
barCode.CodeText = parameter;
barCode.BackColor = Color.White;
word-document-api-insert-inline-pictures/VB/InlinePictures/Program.vb#L41
barCode.Symbology = DevExpress.BarCodes.Symbology.QRCode
barCode.CodeText = "http://www.devexpress.com"
barCode.CodeBinaryData = Text.Encoding.Default.GetBytes(barCode.CodeText)
asp-net-web-forms-grid-display-barcode-in-column/VB/ASPxGridViewBarCode/Default.aspx.vb#L32
barCode.Symbology = Symbology.QRCode
barCode.CodeText = parameter
barCode.BackColor = Color.White
See Also