menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataMatrix - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataMatrix

    The DataMatrix is two-dimensional barcode. The information to be encoded with text or numeric values. Each barcode can store values up to 2335.

    Inheritance
    System.Object
    SymbologyBase
    DataMatrix
    Inherited Members
    SymbologyBase.Module
    SymbologyBase.ModuleProperty
    Namespace: Syncfusion.Maui.Barcode
    Assembly: Syncfusion.Maui.Barcode.dll
    Syntax
    public class DataMatrix : SymbologyBase
    Remarks

    DataMatrix barcode consists of a grid of dark and light dots or blocks forming a square or rectangular symbol.

    DataMatrix barcode will be mostly used for courier parcel, food industry, etc.

    Constructors

    DataMatrix()

    Initializes a new instance of the DataMatrix class.

    Declaration
    public DataMatrix()

    Fields

    EncodingProperty

    Identifies the Encoding bindable property.

    Declaration
    public static readonly BindableProperty EncodingProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Encoding bindable property.

    SizeProperty

    Identifies the Size bindable property.

    Declaration
    public static readonly BindableProperty SizeProperty
    Field Value
    Type Description
    Microsoft.Maui.Controls.BindableProperty

    The identifier for Size bindable property.

    Properties

    Encoding

    Gets or sets a value to define the encoding type for the DataMatrix code.

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

    The default value is Auto.

    Examples
    <barcode:SfBarcodeGenerator Value = "123456" ShowText="True">
        <barcode:SfBarcodeGenerator.Symbology>
            <barcode:DataMatrix Encoding = "Base256" />
        </ barcode:SfBarcodeGenerator.Symbology>
    </barcode:SfBarcodeGenerator>
    See Also
    DataMatrixEncoding

    Size

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

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

    The default value is Auto.

    Examples
    <barcode:SfBarcodeGenerator Value = "123456" ShowText="True">
        <barcode:SfBarcodeGenerator.Symbology>
            <barcode:DataMatrix Size = "Size52x52"/>
        </ barcode:SfBarcodeGenerator.Symbology>
    </barcode:SfBarcodeGenerator>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved