Class SerialPortPrinter
It represents a printer which is connected through a serial port in the client machine.
Inherited Members
Namespace:Neodynamic.SDK.Web
Assembly:cs.temp.dll.dll
Syntax
public class SerialPortPrinter : ClientPrinter
Constructors
SerialPortPrinter()
Creates an instance of the SerialPortPrinter class.
Declaration
public SerialPortPrinter()
SerialPortPrinter(String, Int32, SerialPortParity, SerialPortStopBits, Int32, SerialPortHandshake)
Creates an instance of the SerialPortPrinter class wiht the specified information.
Declaration
public SerialPortPrinter(string portName, int baudRate, SerialPortParity parity, SerialPortStopBits stopBits, int dataBits, SerialPortHandshake flowControl)
Parameters
Type | Name | Description |
---|---|---|
System.String | portName | The serial port name, for example COM1. |
System.Int32 | baudRate | The serial port baud rate in bits per second. |
SerialPortParity | parity | The serial port parity-checking protocol. |
SerialPortStopBits | stopBits | The serial port standard number of stopbits per byte. |
System.Int32 | dataBits | The serial port standard length of data bits per byte. |
SerialPortHandshake | flowControl | The handshaking protocol for serial port transmission of data. |
Properties
BaudRate
Gets or sets the serial port baud rate in bits per second. Default value is 9600
Declaration
public int BaudRate { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
DataBits
Gets or sets the serial port standard length of data bits per byte. Default value is 8
Declaration
public int DataBits { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
FlowControl
Gets or sets the handshaking protocol for serial port transmission of data. Default value is XOnXOff
Declaration
public SerialPortHandshake FlowControl { get; set; }
Property Value
Type | Description |
---|---|
SerialPortHandshake |
Parity
Gets or sets the serial port parity-checking protocol. Default value is None
Declaration
public SerialPortParity Parity { get; set; }
Property Value
Type | Description |
---|---|
SerialPortParity |
PortName
Gets or sets the serial port name, for example COM1. Default value is "COM1"
Declaration
public string PortName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StopBits
Gets or sets the serial port standard number of stopbits per byte. Default value is One
Declaration
public SerialPortStopBits StopBits { get; set; }
Property Value
Type | Description |
---|---|
SerialPortStopBits |