menu

WinUI

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

    Show / Hide Table of Contents

    Class DataMatrixBarcode

    Represent a class for DataMatrixBarcode type.

    Inheritance
    System.Object
    NotificationObject
    BarcodeBase
    BidimensionalBarcode
    DataMatrixBarcode
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    NotificationObject.PropertyChanged
    NotificationObject.RaisePropertyChanged(String)
    NotificationObject.RaisePropertyChanged(String[])
    Namespace: Syncfusion.UI.Xaml.Barcode
    Assembly: Syncfusion.Barcode.WinUI.dll
    Syntax
    public class DataMatrixBarcode : BidimensionalBarcode, INotifyPropertyChanged
    Remarks

    The DataMatrixBarcodetype supports all 128 full ASCII characters.

    Examples
    <syncfusion:SfBarcode Width="200" Height="200" Value="Syncfusion">
         <syncfusion:SfBarcode.Symbology>
              <syncfusion:DataMatrixBarcode/>
         </syncfusion:SfBarcode.Symbology>
    </syncfusion:SfBarcode>
    using Syncfusion.UI.Xaml.Barcode
    …
    SfBarcode sfBarcode = new SfBarcode();
    sfBarcode.Value = "Syncfusion";
    sfBarcode.Symbology = new DataMatrixBarcode();

    Constructors

    DataMatrixBarcode()

    Initializes DataMatrixBarcode class.

    Declaration
    public DataMatrixBarcode()

    Properties

    Encoding

    Gets or sets the encoding type which is used to encode the DataMatrixBarcode data.

    Declaration
    public DataMatrixEncoding Encoding { get; set; }
    Property Value
    Type Description
    DataMatrixEncoding

    The default value is Auto. Fields:

    EnumerationDescription
    Auto Encoding is chosen based on the data.
    ASCII The codeword will be calculated as Codeword = ASCII value + 1, where ASCII value ranges from 0 to 127.
    ASCIINumeric The codeword will be calculated as Codeword = numerical value pair + 130, where the numerical value pair will be like 00, 01, 02,.....99.
    Base256The first codeword will be calculated with the value 235 and the second code value is calculated as ASCII value – 127. The base256 value ranges from 128 to 255.
    Remarks

    This property is applicable only for DataMatrixBarcode

    MatrixSize

    Gets or sets the size that is used to encode the amount of data.

    Declaration
    public DataMatrixSize MatrixSize { get; set; }
    Property Value
    Type Description
    DataMatrixSize

    The default value is Auto. If the size is set to Size10x10 then the size is square matrix with 10 rows and 10 columns and so on.

    Remarks

    This property is applicable only for DataMatrixBarcode. The size is based on matrix.

    Implements

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