PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.8 Assembly / C1.C1Preview Namespace / RenderBarCode Class / BarCodeType Property
Example

In This Topic
    BarCodeType Property (RenderBarCode)
    In This Topic
    Gets or sets the type of encoding to use when generating the barcode.

    Note that BarCodeType.None is not a valid value for this property.

    Syntax
    'Declaration
     
    Public Property BarCodeType As BarCodeEnum
    public BarCodeEnum BarCodeType {get; set;}
    Remarks
    The selected encoding is applied to the value stored in the Text property to generate the barcode image displayed in the object.
    Example
    The following sample shows how to use the BarCodeType 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