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.

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

Syntax

C#
public BarCodeEnum BarCodeType { get; set; }
Visual Basic
Public Property BarCodeType As BarCodeEnum
	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.

Examples

The following sample shows how to use the BarCodeType 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