PDFsharp-net6

CodeOmr

Namespace: PdfSharp.Drawing.BarCodes

Represents an OMR code.

public class CodeOmr : BarCode

Inheritance ObjectCodeBaseBarCodeCodeOmr

Properties

SynchronizeCode

Gets or sets a value indicating whether a synchronize mark is rendered.

public bool SynchronizeCode { get; set; }

Property Value

Boolean

MakerDistance

Gets or sets the distance of the markers.

public double MakerDistance { get; set; }

Property Value

Double

MakerThickness

Gets or sets the thickness of the markers.

public double MakerThickness { get; set; }

Property Value

Double

WideNarrowRatio

When overridden in a derived class gets or sets the wide narrow ratio.

public double WideNarrowRatio { get; set; }

Property Value

Double

TextLocation

Gets or sets the location of the text next to the bar code.

public TextLocation TextLocation { get; set; }

Property Value

TextLocation

DataLength

Gets or sets the length of the data that defines the bar code.

public int DataLength { get; set; }

Property Value

Int32

StartChar

Gets or sets the optional start character.

public char StartChar { get; set; }

Property Value

Char

EndChar

Gets or sets the optional end character.

public char EndChar { get; set; }

Property Value

Char

TurboBit

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; }

Property Value

Boolean

Size

Gets or sets the size.

public XSize Size { get; set; }

Property Value

XSize

Text

Gets or sets the text the bar code shall represent.

public string Text { get; set; }

Property Value

String

Anchor

Always MiddleCenter.

public AnchorType Anchor { get; set; }

Property Value

AnchorType

Direction

Gets or sets the drawing direction.

public CodeDirection Direction { get; set; }

Property Value

CodeDirection

Constructors

CodeOmr(String, XSize, CodeDirection)

Initializes a new OmrCode with the given data.

public CodeOmr(string text, XSize size, CodeDirection direction)

Parameters

text String

size XSize

direction CodeDirection

Methods

Render(XGraphics, XBrush, XFont, XPoint)

Renders the OMR code.

protected internal void Render(XGraphics gfx, XBrush brush, XFont font, XPoint position)

Parameters

gfx XGraphics

brush XBrush

font XFont

position XPoint

CheckCode(String)

Determines whether the specified string can be used as Text for the OMR code.

protected void CheckCode(string text)

Parameters

text String