Class BarCode
Represents the base class of all bar codes.
public abstract class BarCode : CodeBase
- Inheritance
-
BarCode
- Derived
- Inherited Members
Constructors
BarCode(string, XSize, CodeDirection)
Initializes a new instance of the BarCode class.
protected BarCode(string text, XSize size, CodeDirection direction)
Parameters
text
stringsize
XSizedirection
CodeDirection
Properties
DataLength
Gets or sets the length of the data that defines the bar code.
public int DataLength { get; set; }
Property Value
EndChar
Gets or sets the optional end character.
public char EndChar { get; set; }
Property Value
StartChar
Gets or sets the optional start character.
public char StartChar { get; set; }
Property Value
TextLocation
Gets or sets the location of the text next to the bar code.
public TextLocation TextLocation { get; set; }
Property Value
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 virtual bool TurboBit { get; set; }
Property Value
WideNarrowRatio
When overridden in a derived class gets or sets the wide narrow ratio.
public virtual double WideNarrowRatio { get; set; }
Property Value
Methods
FromType(CodeType)
Creates a bar code from the specified code type.
public static BarCode FromType(CodeType type)
Parameters
type
CodeType
Returns
FromType(CodeType, string)
Creates a bar code from the specified code type.
public static BarCode FromType(CodeType type, string text)
Parameters
Returns
FromType(CodeType, string, XSize)
Creates a bar code from the specified code type.
public static BarCode FromType(CodeType type, string text, XSize size)
Parameters
Returns
FromType(CodeType, string, XSize, CodeDirection)
Creates a bar code from the specified code type.
public static BarCode FromType(CodeType type, string text, XSize size, CodeDirection direction)
Parameters
type
CodeTypetext
stringsize
XSizedirection
CodeDirection
Returns
Render(XGraphics, XBrush, XFont?, XPoint)
When defined in a derived class renders the code.
protected abstract void Render(XGraphics gfx, XBrush brush, XFont? font, XPoint position)