Class BarcodeBase
The base class for all barcodes.
Namespace: FastReport.Barcode
Assembly: FastReport.dll
Syntax
[TypeConverter(typeof(BarcodeConverter))]
public abstract class BarcodeBase
Constructors
BarcodeBase()
Initializes a new instance of the BarcodeBase class with default settings.
Declaration
public BarcodeBase()
Properties
Color
Gets or sets the color of barcode.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Color |
Font
Gets or sets the font of barcode.
Declaration
public Font Font { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Font |
Name
Gets the name of barcode.
Declaration
[Browsable(false)]
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Assign(BarcodeBase)
Assigns properties from other, similar barcode.
Declaration
public virtual void Assign(BarcodeBase source)
Parameters
Type | Name | Description |
---|---|---|
BarcodeBase | source | Barcode object to assign properties from. |
Clone()
Creates the exact copy of this barcode.
Declaration
public BarcodeBase Clone()
Returns
Type | Description |
---|---|
BarcodeBase | The copy of this barcode. |
DrawBarcode(IGraphics, RectangleF)
Draws a barcode.
Declaration
public virtual void DrawBarcode(IGraphics g, RectangleF displayRect)
Parameters
Type | Name | Description |
---|---|---|
FastReport.IGraphics | g | The graphic surface. |
System.Drawing.RectangleF | displayRect | Display rectangle. |
GetDefaultValue()
Get default value of this barcode
Declaration
public virtual string GetDefaultValue()
Returns
Type | Description |
---|---|
System.String |