PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / RenderBarCodeEx Class / Text Property
Example

In This Topic
    Text Property (RenderBarCodeEx)
    In This Topic
    Gets or sets the value that is encoded as the barcode image.
    Syntax
    'Declaration
     
    Public Property Text As String
    public string Text {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 BarCodeStyle 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