Search Results for

    Show / Hide Table of Contents

    Class DataMatrixWriter.DataMatrixShape

    Enumeration for DataMatrix shape. Can specify if you would like a Square (equal width and height) or Rectangular.

    Inheritance
    System.Object
    DataMatrixWriter.DataMatrixShape
    Namespace: IronBarCode
    Assembly: IronBarCode.dll
    Syntax
    public sealed class DataMatrixShape : Enum

    DataMatrixShape selects the outline of a Data Matrix code IronBarcode generates, passed as the shape argument to DataMatrixWriter.CreateDataMatrix. Automatic, the default, lets IronBarcode choose the dimensions to fit the data. Square forces equal width and height, the most widely supported form, and Rectangular allows differing width and height for layouts where a long, low symbol fits better. The create 2D barcodes how-to covers writing Data Matrix codes.

    var matrix = DataMatrixWriter.CreateDataMatrix("12345", DataMatrixShape.Square);

    Fields

    Automatic

    Default behavior. Allows IronBarcode to decide the dimensions of the DataMatrix.

    Declaration
    public const DataMatrixWriter.DataMatrixShape Automatic
    Field Value
    Type Description
    DataMatrixWriter.DataMatrixShape

    Rectangular

    Rectangular Shape. Width and Height may be different.

    Declaration
    public const DataMatrixWriter.DataMatrixShape Rectangular
    Field Value
    Type Description
    DataMatrixWriter.DataMatrixShape

    Square

    Square Shape. Width and Height of the generated Datamatrix will be equal.

    Declaration
    public const DataMatrixWriter.DataMatrixShape Square
    Field Value
    Type Description
    DataMatrixWriter.DataMatrixShape

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget