Class UnidimensionalBarcode
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Controls.Barcode
Assembly: Syncfusion.SfBarcode.UWP.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 |
continuous
To check whether Barcode is Continuous Barcode or discrete
Declaration
protected bool continuous
Field Value
Type |
---|
System.Boolean |
isCheckDigitAdded
Indicates whether the Checkdigit is already added to the barcode text or not. Used with the barcodes which involves multiple checksum calculations.
Declaration
protected bool isCheckDigitAdded
Field Value
Type |
---|
System.Boolean |
Properties
BarcodeToTextGapHeight
Gets or sets the gap between the barcode and the displayed text.
Declaration
public float BarcodeToTextGapHeight { get; set; }
Property Value
Type |
---|
System.Single |
EnableCheckDigit
Gets or sets a value indicating whether to enable to check digit calculation in the generated barcode or not.
Declaration
public bool EnableCheckDigit { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
The Default value is True.
EncodeStartStopSymbols
Gets or sets a value indicating whether [encode start stop symbols].
Declaration
public bool EncodeStartStopSymbols { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ShowCheckDigit
Gets or sets a value indicating whether to Show Check digit in the generated barcode or not.EnableCheckDigit
Declaration
public bool ShowCheckDigit { get; set; }
Property Value
Type |
---|
System.Boolean |
Remarks
The Default value is false.
TextAlignment
Gets or sets the alignment of the text displayed on the barcode.
Declaration
public BarcodeTextAlignment TextAlignment { get; set; }
Property Value
Type |
---|
BarcodeTextAlignment |
Remarks
Default value is Center.
TextDisplayLocation
Gets or sets the Text font.
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 |
GetCharBarsCount(Char)
Declaration
protected float GetCharBarsCount(char character)
Parameters
Type | Name | Description |
---|---|---|
System.Char | character |
Returns
Type |
---|
System.Single |
GetCharWidth(Char)
Returns the Character width.
Declaration
protected float GetCharWidth(char character)
Parameters
Type | Name | Description |
---|---|---|
System.Char | character |
Returns
Type | Description |
---|---|
System.Single | The width. |
GetExtendedText()
To get the Extended Text
Declaration
protected virtual void GetExtendedText()
GetTextToEncode()
Returns the Actual text to encode.
Declaration
protected virtual string GetTextToEncode()
Returns
Type | Description |
---|---|
System.String | The Actual Text. |
GetTextToEncodeList()
Declaration
protected virtual List<byte[]> GetTextToEncodeList()
Returns
Type |
---|
System.Collections.Generic.List<System.Byte[]> |
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. |