Namespace: PdfSharp.Drawing.BarCodes
Represents the base class of all codes.
public abstract class CodeBase
Gets or sets the size.
public XSize Size { get; set; }
Gets or sets the text the bar code shall represent.
public string Text { get; set; }
Always MiddleCenter.
public AnchorType Anchor { get; set; }
Gets or sets the drawing direction.
public CodeDirection Direction { get; set; }
When implemented in a derived class, determines whether the specified string can be used as Text for this bar code type.
protected abstract void CheckCode(string text)
text String
The code string to check.
Calculates the distance between an old anchor point and a new anchor point.
public static XVector CalcDistance(AnchorType oldType, AnchorType newType, XSize size)
oldType AnchorType
newType AnchorType
size XSize