Namespace: PdfSharp.Drawing.BarCodes
Represents the base class of all bar codes.
public abstract class BarCode : CodeBase
Inheritance Object → CodeBase → BarCode
When overridden in a derived class gets or sets the wide narrow ratio.
public double WideNarrowRatio { get; set; }
Gets or sets the location of the text next to the bar code.
public TextLocation TextLocation { get; set; }
Gets or sets the length of the data that defines the bar code.
public int DataLength { get; set; }
Gets or sets the optional start character.
public char StartChar { get; set; }
Gets or sets the optional end character.
public char EndChar { get; set; }
Gets or sets a value indicating whether the turbo bit is to be drawn. (A turbo bit is something special to Kern (computer output processing) company (as far as I know))
public bool TurboBit { get; set; }
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; }
Creates a bar code from the specified code type.
public static BarCode FromType(CodeType type, string text, XSize size, CodeDirection direction)
type
CodeType
text
String
size
XSize
direction
CodeDirection
Creates a bar code from the specified code type.
public static BarCode FromType(CodeType type, string text, XSize size)
type
CodeType
text
String
size
XSize
Creates a bar code from the specified code type.
public static BarCode FromType(CodeType type, string text)
type
CodeType
text
String
Creates a bar code from the specified code type.
public static BarCode FromType(CodeType type)
type
CodeType
internal void InitRendering(BarCodeRenderInfo info)
info
BarCodeRenderInfo
When defined in a derived class renders the code.
protected internal abstract void Render(XGraphics gfx, XBrush brush, XFont font, XPoint position)
gfx
XGraphics
brush
XBrush
font
XFont
position
XPoint