Class LinearBarcodeBase
The base class for linear (1D) barcodes.
Inheritance
System.Object
LinearBarcodeBase
Inherited Members
Namespace: FastReport.Barcode
Assembly: FastReport.Base.dll
Syntax
public class LinearBarcodeBase : BarcodeBase
Constructors
LinearBarcodeBase()
Initializes a new instance of the LinearBarcodeBase class with default settings.
Declaration
public LinearBarcodeBase()
Properties
CalcCheckSum
Gets or sets a value that determines if the barcode object should calculate the check digit automatically.
Declaration
public bool CalcCheckSum { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsNumeric
Gets the value indicating that the barcode is numeric.
Declaration
public virtual bool IsNumeric { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Trim
Gets or sets a value indicating that leading/trailing whitespaces must be trimmed.
Declaration
public bool Trim { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
WideBarRatio
Gets or sets a relative width of wide bars in the barcode.
Declaration
public float WideBarRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
Assign(BarcodeBase)
Assigns properties from other, similar barcode.
Declaration
public override void Assign(BarcodeBase source)
Parameters
Type | Name | Description |
---|---|---|
BarcodeBase | source | Barcode object to assign properties from. |
Overrides
DrawBarcode(IGraphics, RectangleF)
Draws a barcode.
Declaration
public override void DrawBarcode(IGraphics g, RectangleF displayRect)
Parameters
Type | Name | Description |
---|---|---|
IGraphics | g | The graphic surface. |
RectangleF | displayRect | Display rectangle. |