Class BarcodeBase
Represents a base class for all barcode types.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Barcode
Assembly: Syncfusion.SfBarcode.Windows.dll
Syntax
public class BarcodeBase
Constructors
BarcodeBase()
Initializes a new instance of the Syncfusion.Windows.Forms.Barcode class.
Declaration
public BarcodeBase()
BarcodeBase(String)
Initializes a new instance of the Syncfusion.Windows.Forms.Barcode class.
Declaration
public BarcodeBase(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | Set the barcode text. |
Fields
barHeight
Indicates the bar height of the barcode.
Declaration
protected float barHeight
Field Value
Type |
---|
System.Single |
bounds
Indicates the region of the barcode.
Declaration
protected RectangleF bounds
Field Value
Type |
---|
System.Drawing.RectangleF |
size
Indicates the size of the the barcode to draw in the PDF Document.
Declaration
protected SizeF size
Field Value
Type |
---|
System.Drawing.SizeF |
Properties
BackColor
Gets or sets the back color of the barcode.
Declaration
public Color BackColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BarColor
Gets or sets the bar color of the barcode.
Declaration
public Color BarColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
BarHeight
Gets or sets the bar height.
Declaration
public float BarHeight { get; set; }
Property Value
Type |
---|
System.Single |
Bounds
Gets or sets the rectangular area occupied by the barcode.
Declaration
public RectangleF Bounds { get; set; }
Property Value
Type |
---|
System.Drawing.RectangleF |
Location
Gets or sets the location to render barcode in the PDF Document.
Declaration
public PointF Location { get; set; }
Property Value
Type |
---|
System.Drawing.PointF |
NarrowBarWidth
Gets or sets the narrow bar width.
Declaration
public float NarrowBarWidth { get; set; }
Property Value
Type |
---|
System.Single |
QuietZone
Gets or sets the empty area which is to be allocated around the barcode.
Declaration
public BarcodeQuietZones QuietZone { get; set; }
Property Value
Type |
---|
BarcodeQuietZones |
Size
Gets the size of the barcode.
Declaration
public SizeF Size { get; set; }
Property Value
Type |
---|
System.Drawing.SizeF |
Text
Gets or Sets the barcode text.
Declaration
public string Text { get; set; }
Property Value
Type |
---|
System.String |
TextColor
Gets or sets the text color of the barcode text.
Declaration
public Color TextColor { get; set; }
Property Value
Type |
---|
System.Drawing.Color |
Methods
GetSizeValue()
Internal method which calculates the size of the barcode which is going to rendered.
Declaration
protected virtual SizeF GetSizeValue()
Returns
Type |
---|
System.Drawing.SizeF |
Validate(String)
Internal method which validates whether the given text is acceptable by the current barcode specification or not.
Declaration
protected virtual bool Validate(string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | The Text. |
Returns
Type | Description |
---|---|
System.Boolean | True if Valid, Otherwise False |