PdfSharp-GDI  1.31.7289
PdfSharp.Drawing.BarCodes.BarCode Class Referenceabstract

Represents the base class of all bar codes. More...

Inheritance diagram for PdfSharp.Drawing.BarCodes.BarCode:
PdfSharp.Drawing.BarCodes.CodeBase PdfSharp.Drawing.BarCodes.CodeOmr PdfSharp.Drawing.BarCodes.ThickThinBarCode PdfSharp.Drawing.BarCodes.Code2of5Interleaved PdfSharp.Drawing.BarCodes.Code3of9Standard

Public Member Functions

 BarCode (string text, XSize size, CodeDirection direction)
 Initializes a new instance of the BarCode class. More...
 
- Public Member Functions inherited from PdfSharp.Drawing.BarCodes.CodeBase
 CodeBase (string text, XSize size, CodeDirection direction)
 Initializes a new instance of the CodeBase class. More...
 

Static Public Member Functions

static BarCode FromType (CodeType type, string text, XSize size, CodeDirection direction)
 Creates a bar code from the specified code type. More...
 
static BarCode FromType (CodeType type, string text, XSize size)
 Creates a bar code from the specified code type. More...
 
static BarCode FromType (CodeType type, string text)
 Creates a bar code from the specified code type. More...
 
static BarCode FromType (CodeType type)
 Creates a bar code from the specified code type. More...
 
- Static Public Member Functions inherited from PdfSharp.Drawing.BarCodes.CodeBase
static XVector CalcDistance (AnchorType oldType, AnchorType newType, XSize size)
 Calculates the distance between an old anchor point and a new anchor point. More...
 

Properties

virtual double WideNarrowRatio [get, set]
 When overridden in a derived class gets or sets the wide narrow ratio. More...
 
TextLocation TextLocation [get, set]
 Gets or sets the location of the text next to the bar code. More...
 
int DataLength [get, set]
 Gets or sets the length of the data that defines the bar code. More...
 
char StartChar [get, set]
 Gets or sets the optional start character. More...
 
char EndChar [get, set]
 Gets or sets the optional end character. More...
 
virtual bool TurboBit [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)) More...
 
- Properties inherited from PdfSharp.Drawing.BarCodes.CodeBase
XSize Size [get, set]
 Gets or sets the size. More...
 
string Text [get, set]
 Gets or sets the text the bar code shall represent. More...
 
AnchorType Anchor [get, set]
 Always MiddleCenter. More...
 
CodeDirection Direction [get, set]
 Gets or sets the drawing direction. More...
 

Additional Inherited Members

- Protected Member Functions inherited from PdfSharp.Drawing.BarCodes.CodeBase
abstract void CheckCode (string text)
 When implemented in a derived class, determines whether the specified string can be used as Text for this bar code type. More...
 

Detailed Description

Represents the base class of all bar codes.

Constructor & Destructor Documentation

◆ BarCode()

PdfSharp.Drawing.BarCodes.BarCode.BarCode ( string  text,
XSize  size,
CodeDirection  direction 
)

Initializes a new instance of the BarCode class.

Parameters
text
size
direction

Member Function Documentation

◆ FromType() [1/4]

static BarCode PdfSharp.Drawing.BarCodes.BarCode.FromType ( CodeType  type)
static

Creates a bar code from the specified code type.

◆ FromType() [2/4]

static BarCode PdfSharp.Drawing.BarCodes.BarCode.FromType ( CodeType  type,
string  text 
)
static

Creates a bar code from the specified code type.

◆ FromType() [3/4]

static BarCode PdfSharp.Drawing.BarCodes.BarCode.FromType ( CodeType  type,
string  text,
XSize  size 
)
static

Creates a bar code from the specified code type.

◆ FromType() [4/4]

static BarCode PdfSharp.Drawing.BarCodes.BarCode.FromType ( CodeType  type,
string  text,
XSize  size,
CodeDirection  direction 
)
static

Creates a bar code from the specified code type.

Property Documentation

◆ DataLength

int PdfSharp.Drawing.BarCodes.BarCode.DataLength
getset

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

◆ EndChar

char PdfSharp.Drawing.BarCodes.BarCode.EndChar
getset

Gets or sets the optional end character.

◆ StartChar

char PdfSharp.Drawing.BarCodes.BarCode.StartChar
getset

Gets or sets the optional start character.

◆ TextLocation

TextLocation PdfSharp.Drawing.BarCodes.BarCode.TextLocation
getset

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

◆ TurboBit

virtual bool PdfSharp.Drawing.BarCodes.BarCode.TurboBit
getset

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))

◆ WideNarrowRatio

virtual double PdfSharp.Drawing.BarCodes.BarCode.WideNarrowRatio
getset

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


The documentation for this class was generated from the following file: