xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrbarcode-a3497a83.md
Gets or sets the textual information to be coded into a barcode.
Namespace : DevExpress.XtraReports.UI
Assembly : DevExpress.XtraReports.v25.2.dll
NuGet Package : DevExpress.Reporting.Core
public override string Text { get; set; }
Public Overrides Property Text As String
| Type | Description |
|---|---|
| String |
A String value to be coded into a barcode.
|
Use the Text property to code textual information into a barcode.
Some barcode symbologies also support encoding binary data assigned to a barcode’s XRBarCode.BinaryData property.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Text 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.
reporting-add-a-bar-code-to-a-report/CS/Form1.cs#L77
// Adjust the bar code's main properties.
barCode.Text = BarCodeText;
barCode.Width = 300;
See Also