Class Code128CBarcode
Represents a class which encodes the ASCII values 00-99(encodes each two digit with one code).
Inherited Members
Namespace: Syncfusion.UI.Xaml.Controls.Barcode
Assembly: Syncfusion.SfBarcode.UWP.dll
Syntax
public class Code128CBarcode : UnidimensionalBarcode
Remarks
It is inherited from UnidimensionalBarcode. The Code128C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol.
Constructors
Code128CBarcode()
Initializes a new instance of the Code128CBarcode class.
Declaration
public Code128CBarcode()
Code128CBarcode(String)
Initializes a new instance of the Code128CBarcode class.
Declaration
public Code128CBarcode(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The Barcode text. |
Methods
CalculateCheckDigit()
Calculates the check digit for this barcode specification.
Declaration
protected override char[] CalculateCheckDigit()
Returns
Type | Description |
---|---|
System.Char[] | The Check digits. |
Overrides
GetDataToEncode(String)
Gets the data to encode.
Declaration
protected string GetDataToEncode(string originalData)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalData | The original data. |
Returns
Type | Description |
---|---|
System.String | Encoded string. |
GetTextToEncode()
Returns the Actual text to encode.
Declaration
protected override string GetTextToEncode()
Returns
Type | Description |
---|---|
System.String | The Actual Text. |
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. |