Class Code128CBarcode
Represents a class which encodes the ASCII values 00-99(encodes each two digit with one code).
Implements
System.ComponentModel.INotifyPropertyChanged
  Inherited Members
Namespace: Syncfusion.UI.Xaml.Barcode
Assembly: Syncfusion.Barcode.WinUI.dll
Syntax
public class Code128CBarcode : UnidimensionalBarcode, INotifyPropertyChangedRemarks
The Code128C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol.
Examples
<syncfusion:SfBarcode Width="200" Height="200" Value="48625310">
     <syncfusion:SfBarcode.Symbology>
          <syncfusion:Code128CBarcode/>
     </syncfusion:SfBarcode.Symbology>
</syncfusion:SfBarcode>using Syncfusion.UI.Xaml.Barcode
�
SfBarcode sfBarcode = new SfBarcode();
sfBarcode.Value = "48625310";
sfBarcode.Symbology = new Code128CBarcode();Constructors
Code128CBarcode()
Initializes a new instance of the Code128CBarcode class.
Declaration
public Code128CBarcode()Methods
CalculateCheckDigit(SfBarcode)
Calculates the check digit for this barcode specification.
Declaration
protected override char[] CalculateCheckDigit(SfBarcode barcode)Parameters
| Type | Name | Description | 
|---|---|---|
| SfBarcode | barcode | Barcode | 
Returns
| Type | Description | 
|---|---|
| System.Char[] | The Check digits. | 
Overrides
GetTextToEncode(SfBarcode)
Returns the Actual text to encode.
Declaration
protected override string GetTextToEncode(SfBarcode barcode)Parameters
| Type | Name | Description | 
|---|---|---|
| SfBarcode | barcode | The Barcode. | 
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. | 
Overrides
Implements
      System.ComponentModel.INotifyPropertyChanged