Table of Contents

Class CodeOmr

Namespace
PdfSharp.Drawing.BarCodes
Assembly
PdfSharp.dll

Represents an OMR code.

public class CodeOmr : BarCode
Inheritance
CodeOmr
Inherited Members

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

Properties

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

SynchronizeCode

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

public bool SynchronizeCode { get; set; }

Property Value

bool

Methods

CheckCode(string)

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

protected override void CheckCode(string text)

Parameters

text string

Render(XGraphics, XBrush, XFont?, XPoint)

Renders the OMR code.

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

Parameters

gfx XGraphics
brush XBrush
font XFont
position XPoint