menu

WinUI

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class Code128CBarcode - WinUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class Code128CBarcode

    Represents a class which encodes the ASCII values 00-99(encodes each two digit with one code).

    Inheritance
    System.Object
    NotificationObject
    BarcodeBase
    UnidimensionalBarcode
    Code128CBarcode
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    NotificationObject.PropertyChanged
    NotificationObject.RaisePropertyChanged(String)
    NotificationObject.RaisePropertyChanged(String[])
    UnidimensionalBarcode.EnableCheckSum
    UnidimensionalBarcode.EncodeStartStopSymbols
    UnidimensionalBarcode.GetExtendedText(SfBarcode)
    UnidimensionalBarcode.ShowCheckSum
    Namespace: Syncfusion.UI.Xaml.Barcode
    Assembly: Syncfusion.Barcode.WinUI.dll
    Syntax
    public class Code128CBarcode : UnidimensionalBarcode, INotifyPropertyChanged
    Remarks

    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
    UnidimensionalBarcode.CalculateCheckDigit(SfBarcode)

    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
    UnidimensionalBarcode.GetTextToEncode(SfBarcode)

    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
    UnidimensionalBarcode.Validate(String)

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved