Class UnidimensionalBarcode
Represents the Base class for all the Single dimensional barcodes
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Controls.Barcode
Assembly: Syncfusion.SfBarcode.WPF.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 |
Remarks
The Default value is 5.
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 |
|
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 |
GetExtendedTextValue()
To get the Extended Text
Declaration
protected virtual void GetExtendedTextValue()
ToImage()
Exports the Unidimensional Barcode as BitmapImage.
Declaration
public BitmapSource ToImage()
Returns
| Type |
|---|
| System.Windows.Media.Imaging.BitmapSource |
ToImage(Size)
Exports the Unidimensional Barcode as BitmapImage.
Declaration
public BitmapSource ToImage(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | size |
Returns
| Type |
|---|
| System.Windows.Media.Imaging.BitmapSource |
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. |