Property | Type | Description | |
---|---|---|---|
PictureLineSleepTimeMs | int | ||
WriteLineSleepTimeMs | int |
Method | Description | |
---|---|---|
BoldOff ( ) : void |
Sets bold mode off.
|
|
BoldOn ( ) : void |
Sets bold mode on.
|
|
FeedDots ( byte dotsToFeed ) : void |
Prints the contents of the buffer and feeds n dots.
|
|
HorizontalLine ( int length ) : void |
Prints a horizontal line.
|
|
Indent ( byte columns ) : void |
Idents the text.
|
|
LineFeed ( ) : void |
Prints the contents of the buffer and feeds one line.
|
|
LineFeed ( byte lines ) : void |
Prints the contents of the buffer and feeds n lines.
|
|
PrintBarcode ( BarcodeType type, string data ) : void |
Prints the barcode data.
|
|
PrintImage ( |
Prints the image. The image must be 384px wide.
|
|
PrintImage ( string fileName ) : void |
Prints the image. The image must be 384px wide.
|
|
Reset ( ) : void |
Resets the printer.
|
|
SetAlignCenter ( ) : void |
Centers the text.
|
|
SetAlignLeft ( ) : void |
Aligns the text to the left.
|
|
SetAlignRight ( ) : void |
Aligns the text to the right.
|
|
SetBarcodeLeftSpace ( byte spacingDots ) : void |
Sets the barcode left space.
|
|
SetLargeBarcode ( bool large ) : void |
Selects large barcode mode.
|
|
SetLineSpacing ( byte lineSpacing ) : void |
Sets the line spacing.
|
|
SetPrintingParameters ( byte maxPrintingDots, byte heatingTime, byte heatingInterval ) : void |
Sets the printing parameters.
|
|
SetSize ( bool doubleWidth, bool doubleHeight ) : void |
Sets the text size.
|
|
Sleep ( ) : void |
Sets the printer offine.
|
|
ThermalPrinter ( |
Initializes a new instance of the ThermalDotNet.ThermalPrinter class.
|
|
ThermalPrinter ( |
Initializes a new instance of the ThermalDotNet.ThermalPrinter class.
|
|
ToString ( ) : string |
Returns a System.String that represents the current ThermalDotNet.ThermalPrinter.
|
|
WakeUp ( ) : void |
Sets the printer online.
|
|
WhiteOnBlackOff ( ) : void |
Sets white on black mode off.
|
|
WhiteOnBlackOn ( ) : void |
Sets white on black mode on.
|
|
WriteLine ( string text ) : void |
Prints the line of text.
|
|
WriteLine ( string text, PrintingStyle style ) : void |
Prints the line of text.
|
|
WriteLine ( string text, byte style ) : void |
Prints the line of text.
|
|
WriteLine_Big ( string text ) : void |
Prints the line of text, double size.
|
|
WriteLine_Bold ( string text ) : void |
Prints the line of text in bold.
|
|
WriteLine_Invert ( string text ) : void |
Prints the line of text, white on black.
|
|
WriteToBuffer ( string text ) : void |
Sends the text to the printer buffer. Does not print until a line feed (0x10) is sent.
|
Method | Description | |
---|---|---|
_BitClear ( byte originalValue, int bit ) : byte |
Return the given value with its n bit cleared.
|
|
_BitSet ( byte originalValue, byte bit ) : byte |
Return the given value with its n bit set.
|
|
_BitTest ( byte valueToTest, int testBit ) : bool |
Tests the value of a given bit.
|
|
_constructor ( |
||
_sendEncoding ( string encoding ) : void | ||
_writeByte ( byte valueToWrite ) : void |
public FeedDots ( byte dotsToFeed ) : void | ||
dotsToFeed | byte | /// Number of dots to feed. /// |
return | void |
public HorizontalLine ( int length ) : void | ||
length | int | /// Line length (in characters) (max 32). /// |
return | void |
public Indent ( byte columns ) : void | ||
columns | byte | /// Number of columns. /// |
return | void |
public LineFeed ( byte lines ) : void | ||
lines | byte | /// Number of lines to feed. /// |
return | void |
public PrintBarcode ( BarcodeType type, string data ) : void | ||
type | BarcodeType | /// Type of barcode. /// |
data | string | /// Data to print. /// |
return | void |
public PrintImage ( |
||
image | /// Image to print. /// | |
return | void |
public PrintImage ( string fileName ) : void | ||
fileName | string | /// Image file path. /// |
return | void |
public SetBarcodeLeftSpace ( byte spacingDots ) : void | ||
spacingDots | byte | /// Spacing dots. /// |
return | void |
public SetLargeBarcode ( bool large ) : void | ||
large | bool | /// Large barcode mode. /// |
return | void |
public SetLineSpacing ( byte lineSpacing ) : void | ||
lineSpacing | byte | /// Line spacing (in dots), default value: 32 dots. /// |
return | void |
public SetPrintingParameters ( byte maxPrintingDots, byte heatingTime, byte heatingInterval ) : void | ||
maxPrintingDots | byte | /// Max printing dots (0-255), unit: (n+1)*8 dots, default: 7 (beceause (7+1)*8 = 64 dots) /// |
heatingTime | byte | /// Heating time (3-255), unit: 10µs, default: 80 (800µs) /// |
heatingInterval | byte | /// Heating interval (0-255), unit: 10µs, default: 2 (20µs) /// |
return | void |
public SetSize ( bool doubleWidth, bool doubleHeight ) : void | ||
doubleWidth | bool | /// Double width /// |
doubleHeight | bool | /// Double height /// |
return | void |
public ThermalPrinter ( |
||
serialPort | /// Serial port used by printer. /// | |
return | System |
public ThermalPrinter ( |
||
serialPort | /// Serial port used by printer. /// | |
maxPrintingDots | byte | /// Max printing dots (0-255), unit: (n+1)*8 dots, default: 7 ((7+1)*8 = 64 dots) /// |
heatingTime | byte | /// Heating time (3-255), unit: 10µs, default: 80 (800µs) /// |
heatingInterval | byte | /// Heating interval (0-255), unit: 10µs, default: 2 (20µs) /// |
return | System |
public WriteLine ( string text ) : void | ||
text | string | /// Text to print. /// |
return | void |
public WriteLine ( string text, PrintingStyle style ) : void | ||
text | string | /// Text to print. /// |
style | PrintingStyle | /// Style of the text. /// |
return | void |
public WriteLine ( string text, byte style ) : void | ||
text | string | /// Text to print. /// |
style | byte | /// Style of the text. Can be the sum of PrintingStyle enums. /// |
return | void |
public WriteLine_Big ( string text ) : void | ||
text | string | /// Text to print. /// |
return | void |
public WriteLine_Bold ( string text ) : void | ||
text | string | /// Text to print. /// |
return | void |
public WriteLine_Invert ( string text ) : void | ||
text | string | /// Text to print. /// |
return | void |
public WriteToBuffer ( string text ) : void | ||
text | string | /// Text to print. /// |
return | void |