Class UnidimensionalBarcode
Represents the Base class for all the Single dimensional barcodes
Inheritance
System.Object
UnidimensionalBarcode
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Barcode
Assembly: Syncfusion.SfBarcode.Windows.dll
Syntax
public abstract class UnidimensionalBarcode : BarcodeBase
Constructors
UnidimensionalBarcode()
Initializes the new instance of UnidimensionalBarcode
Declaration
public UnidimensionalBarcode()
Fields
check
Automatically adds the check digit to the barcode when true.
Declaration
protected bool check
Field Value
Type |
---|
System.Boolean |
Properties
BarcodeToTextGapHeight
Declaration
public float BarcodeToTextGapHeight { get; set; }
Property Value
Type |
---|
System.Single |
EnableCheckDigit
Declaration
public bool EnableCheckDigit { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
The Default value is True.
EncodeStartStopSymbols
Declaration
public bool EncodeStartStopSymbols { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Font
Gets or sets the Text font.
Declaration
public Font Font { get; set; }
Property Value
Type |
---|
System.Drawing.Font |
ShowCheckDigit
Declaration
public bool ShowCheckDigit { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
The Default value is false.
TextAlignment
Declaration
public BarcodeTextAlignment TextAlignment { get; set; }
Property Value
Type |
---|
BarcodeTextAlignment |
Remarks
Default value is Center.
TextDisplayLocation
Gets or sets the text display location. TextDisplayLocation
Declaration
public BarcodeTextLocation TextDisplayLocation { get; set; }
Property Value
Type |
---|
BarcodeTextLocation |
Methods
CalculateCheckDigit()
Calculates the check digit based on the barcode specification.
Declaration
protected virtual char[] CalculateCheckDigit()
Returns
Type | Description |
---|---|
System.Char[] | Char array containing Check digits |
Draw(Int32)
Declaration
public virtual Image Draw(int angle)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | angle |
Returns
Type |
---|
System.Drawing.Image |
Draw(Panel)
Declaration
public SizeF Draw(Panel panel)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Panel | panel |
Returns
Type |
---|
System.Drawing.SizeF |
GetExtendedTextValue()
To get the Extended Text
Declaration
protected virtual void GetExtendedTextValue()
GetSizeValue()
Returns the size of the barcode.
Declaration
protected override SizeF GetSizeValue()
Returns
Type | Description |
---|---|
System.Drawing.SizeF | The Size. |
Overrides
Validate(String)
Internal method used to validate the given barcode text.
Declaration
protected override bool Validate(string data)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | The Text. |
Returns
Type | Description |
---|---|
System.Boolean | True if valid, Otherwise False. |