C1.WPF.PrintDocument.4.6.2 Assembly / C1.C1Preview Namespace / RenderBarCode Class / Text Property
Example

Text Property (RenderBarCode)
Gets or sets the value that is encoded as the barcode image.
Syntax
'Declaration
 
Public Property Text As String
 
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.

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