Table of Contents

Class MatrixCode

Namespace
PdfSharp.Drawing.BarCodes
Assembly
PdfSharp.dll

Represents the base class of all 2D codes.

public abstract class MatrixCode : CodeBase
Inheritance
MatrixCode
Derived
Inherited Members

Constructors

MatrixCode(string, string, int, int, XSize)

Initializes a new instance of the MatrixCode class.

public MatrixCode(string text, string encoding, int rows, int columns, XSize size)

Parameters

text string
encoding string
rows int
columns int
size XSize

Properties

Columns

Gets or sets the number of columns.

public int Columns { get; set; }

Property Value

int

Encoding

Gets or sets the encoding.

public string Encoding { get; set; }

Property Value

string

Rows

Gets or sets the number of rows.

public int Rows { get; set; }

Property Value

int

Text

Gets or sets the text.

public string Text { get; set; }

Property Value

string

Methods

CheckCode(string)

Determines whether the specified string can be used as Text for this matrix code type.

protected override void CheckCode(string text)

Parameters

text string

Render(XGraphics, XBrush, XPoint)

When implemented in a derived class renders the 2D code.

protected abstract void Render(XGraphics gfx, XBrush brush, XPoint center)

Parameters

gfx XGraphics
brush XBrush
center XPoint