Back to Devexpress

BarCode.CodeText Property

officefileapi-devexpress-dot-barcodes-dot-barcode-27e2ed5d.md

latest3.3 KB
Original Source

BarCode.CodeText Property

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

Declaration

csharp
public string CodeText { get; set; }
vb
Public Property CodeText As String

Property Value

TypeDescription
String

A string containing the text represented by a bar code.

|

Remarks

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

csharp
barCode.Symbology = Symbology.QRCode;
barCode.CodeText = parameter;
barCode.BackColor = Color.White;

word-document-api-insert-inline-pictures/VB/InlinePictures/Program.vb#L41

vb
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

vb
barCode.Symbology = Symbology.QRCode
barCode.CodeText = parameter
barCode.BackColor = Color.White

See Also

BarCode Class

BarCode Members

DevExpress.BarCodes Namespace