Namespace: PdfSharp.Drawing.BarCodes
Represents the base class of all 2D codes.
public abstract class MatrixCode : CodeBase
Inheritance Object → CodeBase → MatrixCode
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 the MatrixCode class.
public MatrixCode(string text, string encoding, int rows, int columns, XSize size)
text String
encoding String
rows Int32
columns Int32
size XSize
When implemented in a derived class renders the 2D code.
protected internal abstract void Render(XGraphics gfx, XBrush brush, XPoint center)
gfx XGraphics
brush XBrush
center XPoint
Determines whether the specified string can be used as Text for this matrix code type.
protected void CheckCode(string text)
text String