Table of Contents

Class CodeBase

Namespace
PdfSharp.Drawing.BarCodes
Assembly
PdfSharp.BarCodes.dll

Represents the base class of all codes.

public abstract class CodeBase
Inheritance
object
CodeBase
Derived

Constructors

CodeBase(string, XSize, CodeDirection)

Initializes a new instance of the CodeBase class.

Properties

Anchor

Always MiddleCenter.

Direction

Gets or sets the drawing direction.

Size

Gets or sets the size.

Text

Gets or sets the text the bar code shall represent.

Methods

CalcDistance(AnchorType, AnchorType, XSize)

Calculates the distance between an old anchor point and a new anchor point.

CheckCode(string)

When implemented in a derived class, determines whether the specified string can be used as Text for this bar code type.