menu

ASP.NET Core - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataMatrixGenerator - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataMatrixGenerator

    Inheritance
    System.Object
    Syncfusion.EJ2.EJTagHelper
    DataMatrixGenerator
    Namespace: Syncfusion.EJ2.BarcodeGenerator
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DataMatrixGenerator : EJTagHelper

    Constructors

    DataMatrixGenerator()

    Declaration
    public DataMatrixGenerator()

    Properties

    BackgroundColor

    Defines the background color of the DataMatrix.

    Declaration
    public string BackgroundColor { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "white"

    DisplayText

    Defines the text properties for the DataMatrix.

    Declaration
    public DataMatrixGeneratorDisplayText DisplayText { get; set; }
    Property Value
    Type Description
    DataMatrixGeneratorDisplayText

    The default value is null

    EnablePersistence

    Enable or disable persisting component's state between page reloads.

    Declaration
    public bool EnablePersistence { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    EnableRtl

    Enable or disable rendering component in right to left direction.

    Declaration
    public bool EnableRtl { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false

    Encoding

    Defines encoding type of the DataMatrix.

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

    The default value is DataMatrixEncoding.Auto

    ForeColor

    Defines the forecolor of the DataMatrix.

    Declaration
    public string ForeColor { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "black"

    Height

    Defines the height of the DataMatrix.

    Declaration
    public string Height { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "100%"

    HtmlAttributes

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    public object HtmlAttributes { get; set; }
    Property Value
    Type
    System.Object

    Invalid

    Triggers if you enter any invalid character.

    Declaration
    public string Invalid { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Locale

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    public string Locale { get; set; }
    Property Value
    Type Description
    System.String

    The default value is ""

    Margin

    Defines the margin properties for the DataMatrix.

    Declaration
    public DataMatrixGeneratorMargin Margin { get; set; }
    Property Value
    Type Description
    DataMatrixGeneratorMargin

    The default value is null

    Mode

    Defines the DataMatrix rendering mode. SVG - Renders the bar-code objects as SVG elements Canvas - Renders the bar-code in a canvas

    Declaration
    public RenderingMode Mode { get; set; }
    Property Value
    Type Description
    RenderingMode

    The default value is RenderingMode.SVG

    Size

    Defines encoding type of the DataMatrix.

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

    The default value is DataMatrixSize.Auto

    Value

    Defines the value of the DataMatrix to be rendered.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null

    Width

    Defines the width of the DataMatrix.

    Declaration
    public string Width { get; set; }
    Property Value
    Type Description
    System.String

    The default value is "100%"

    XDimension

    Defines the xDimension of the DataMatrix.

    Declaration
    public double XDimension { get; set; }
    Property Value
    Type Description
    System.Double

    The default value is null

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