Namespace: PdfSharp.Drawing.BarCodes
Defines the DataMatrix 2D barcode. THIS IS AN EMPIRA INTERNAL IMPLEMENTATION. THE CODE IN THE OPEN SOURCE VERSION IS A FAKE.
public class CodeDataMatrix : MatrixCode
Inheritance Object → CodeBase → MatrixCode → CodeDataMatrix
Gets or sets the size of the Matrix’ Quiet Zone.
public int QuietZone { get; set; }
Gets or sets the encoding.
public string Encoding { get; set; }
Gets or sets the number of columns.
public int Columns { get; set; }
Gets or sets the number of rows.
public int Rows { get; set; }
Gets or sets the text.
public string Text { get; set; }
Gets or sets the size.
public XSize Size { get; set; }
Always MiddleCenter.
public AnchorType Anchor { get; set; }
Gets or sets the drawing direction.
public CodeDirection Direction { get; set; }
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix()
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix(string code, int length)
code String
length Int32
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix(string code, int length, XSize size)
code String
length Int32
size XSize
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix(string code, DataMatrixEncoding dmEncoding, int length, XSize size)
code String
dmEncoding DataMatrixEncoding
length Int32
size XSize
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix(string code, int rows, int columns)
code String
rows Int32
columns Int32
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix(string code, int rows, int columns, XSize size)
code String
rows Int32
columns Int32
size XSize
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix(string code, DataMatrixEncoding dmEncoding, int rows, int columns, XSize size)
code String
dmEncoding DataMatrixEncoding
rows Int32
columns Int32
size XSize
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix(string code, int rows, int columns, int quietZone)
code String
rows Int32
columns Int32
quietZone Int32
Initializes a new instance of CodeDataMatrix.
public CodeDataMatrix(string code, string encoding, int rows, int columns, int quietZone, XSize size)
code String
encoding String
rows Int32
columns Int32
quietZone Int32
size XSize
Sets the encoding of the DataMatrix.
public void SetEncoding(DataMatrixEncoding dmEncoding)
dmEncoding DataMatrixEncoding
Renders the matrix code.
protected internal void Render(XGraphics gfx, XBrush brush, XPoint position)
gfx XGraphics
brush XBrush
position XPoint
Determines whether the specified string can be used as data in the DataMatrix.
protected void CheckCode(string text)
text String
The code to be checked.