Show / Hide Table of Contents

Class SerialPortPrinter

It represents a printer which is connected through a serial port in the client machine.

Inheritance
System.Object
ClientPrinter
SerialPortPrinter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace:Neodynamic.SDK.Web
Assembly:Neodynamic.SDK.WebClientPrint.dll
Syntax
public class SerialPortPrinter : ClientPrinter

Constructors

SerialPortPrinter()

Creates an instance of the SerialPortPrinter class.

Declaration
public SerialPortPrinter()

SerialPortPrinter(String, Int32, Parity, StopBits, Int32, Handshake)

Creates an instance of the SerialPortPrinter class wiht the specified information.

Declaration
public SerialPortPrinter(string portName, int baudRate, Parity parity, StopBits stopBits, int dataBits, Handshake 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.

System.IO.Ports.Parity parity

The serial port parity-checking protocol.

System.IO.Ports.StopBits stopBits

The serial port standard number of stopbits per byte.

System.Int32 dataBits

The serial port standard length of data bits per byte.

System.IO.Ports.Handshake 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 Handshake FlowControl { get; set; }
Property Value
Type Description
System.IO.Ports.Handshake

Parity

Gets or sets the serial port parity-checking protocol. Default value is None

Declaration
public Parity Parity { get; set; }
Property Value
Type Description
System.IO.Ports.Parity

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 StopBits StopBits { get; set; }
Property Value
Type Description
System.IO.Ports.StopBits
Back to top Copyright © 2003- Neodynamic SRL
http://www.neodynamic.com