Back to Devexpress

XRBarCode.Text Property

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrbarcode-a3497a83.md

latest2.2 KB
Original Source

XRBarCode.Text Property

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

Declaration

csharp
public override string Text { get; set; }
vb
Public Overrides Property Text As String

Property Value

TypeDescription
String

A String value to be coded into a barcode.

|

Remarks

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

csharp
// Adjust the bar code's main properties.
barCode.Text = BarCodeText;
barCode.Width = 300;

See Also

XRBarCode Class

XRBarCode Members

DevExpress.XtraReports.UI Namespace