ClassEncoder1D
Class
Defines the base class for all 1D barcode encoders.
Definition
Namespace:Telerik.Reporting.Barcodes
Assembly:Telerik.Reporting.dll
Syntax:
cs-api-definition
public abstract class Encoder1D : Encoder
Inheritance: objectEncoderEncoder1D
Derived Classes:
Inherited Members
Constructors
Encoder1D()
Initializes a new instance of the Encoder1D class.
Declaration
cs-api-definition
public Encoder1D()
Properties
ShowText
Gets or sets a value indicating whether the barcode should display a human-readable text representation of the encoded value.
Declaration
cs-api-definition
public bool ShowText { get; set; }
Property Value
bool
true if the barcode should display text, otherwise false.
Example
This example illustrates how to set the ShowText property.
cs
var encoder = new Telerik.Reporting.Barcodes.Code128AEncoder();
// Set any specific encoder settings...
encoder.ShowText = false; // The default value is true.
this.barcode1.Encoder = encoder;
this.barcode1.Angle = 90;
this.barcode1.BarAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left;
this.barcode1.Checksum = true;
this.barcode1.Module = Telerik.Reporting.Drawing.Unit.Point(3);
this.barcode1.Stretch = false;
this.barcode1.Value = "1234567890";
vb
Dim encoder = New Telerik.Reporting.Barcodes.Code128AEncoder()
' Set any specific encoder settings...
encoder.ShowText = False 'The default value is True
Me.barcode1.Encoder = encoder Me.barcode1.Angle = 90 Me.barcode1.BarAlign = Telerik.Reporting.Drawing.HorizontalAlign.Left Me.barcode1.Checksum = True Me.barcode1.Module = Telerik.Reporting.Drawing.Unit.Point(3) Me.barcode1.Stretch = False Me.barcode1.Value = "1234567890"