Gets or sets the value that is encoded as the barcode image.

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public string Text { get; set; }
Visual Basic
Public Property Text As String
	Get
	Set

Remarks

Some encodings support alphanumeric values of any length. Others are limited to numeric values or to a specific set of characters. See the BarCodeType enumeration for details.

If you use characters that are invalid for the current encoding, the object will display a blank image.

Examples

The following sample shows how to use the Text property to encode the value "123456" as a Code39-encoded barcode:
Copy CodeC#
RenderBarCode rbc = new RenderBarCode();
rbc.BarCodeType = BarCodeType.Code39;
rbc.Text = "123456";
doc.Body.Children.Add(rbc);

See Also