The properties of the SerialPort class are listed below. For a complete list of SerialPort class members, see the SerialPort Members topic.
BaudRate | Baud rate at which the communications device operates. |
ConnectedTo | Returns the physical port where the component is connected to. |
Container (inherited from Component) | Gets the IContainer that contains the Component. |
CustomBaudRate | Custom baud rate value, used when BaudRate is set to brCustom. |
DataWidth | Number of bits in the bytes transmitted and received. |
Delay | Time interval between two receivings in milliseconds (frequency). |
EnableDTROnOpen | Enable/disable DTR when the port is open. |
EnableRTSOnOpen | Enable/disable RTS when the port is open. |
HardwareFlowControl | Hardware flow control of the serial port. |
InputBuffer | Recommended size of the device's internal input buffer, in bytes. |
IsReceiving | This property is false when the component is receiving data from the port, otherwise is false. Use this property to check if the component is inside a receiving process. |
IsSending | This property is true when the component is sending data to the port, otherwise is false. Use this property to check if the component is inside a sending process. |
LineStatus | Line status of the serial port. |
NeedSynchronization | Set this property to true for thread safety. The default value is false. Note: if you set it to true, you may experiment thread interblocking and lower speed. |
OutputBuffer | Recommended size of the device's internal output buffer, in bytes. |
ParityBits | Parity scheme to be used. |
Port | Physical name of the serial port. |
Priority | Priority of the receiver thread. |
ReadIntervalTimeout | Maximum time allowed to elapse between the arrival of two characters on the communications line, in milliseconds. During a ReadFile operation, the time period begins when the first character is received. If the interval between the arrival of any two characters exceeds this amount, the ReadFile operation is completed and any buffered data is returned. A value of zero indicates that interval time-outs are not used. A value of MAXDWORD, combined with zero values for both the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members, specifies that the read operation is to return immediately with the characters that have already been received, even if no characters have been received. |
ReadTotalTimeoutConstant | Constant used to calculate the total time-out period for read operations, in milliseconds. For each read operation, this value is added to the product of the ReadTotalTimeoutMultiplier member and the requested number of bytes. A value of zero for both the ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant members indicates that total time-outs are not used for read operations. |
ReadTotalTimeoutMultiplier | Multiplier used to calculate the total time-out period for read operations, in milliseconds. For each read operation, this value is multiplied by the requested number of bytes to be read. |
Site (inherited from Component) | Gets or sets the ISite of the Component. |
SoftwareFlowControl | Software flow control of the serial port. |
StopBits | Number of stop bits to be used. |
WriteTotalTimeoutConstant | Constant used to calculate the total time-out period for write operations, in milliseconds. For each write operation, this value is added to the product of the WriteTotalTimeoutMultiplier member and the number of bytes to be written. A value of zero for both the WriteTotalTimeoutMultiplier and WriteTotalTimeoutConstant members indicates that total time-outs are not used for write operations. |
WriteTotalTimeoutMultiplier | Multiplier used to calculate the total time-out period for write operations, in milliseconds. For each write operation, this value is multiplied by the number of bytes to be written. |
CanRaiseEvents (inherited from Component) | Gets a value indicating whether the component can raise an event. |
DesignMode (inherited from Component) | Gets a value that indicates whether the Component is currently in design mode. |
Events (inherited from Component) | Gets the list of event handlers that are attached to this Component. |
SerialPort Class | ZylSerialPort Namespace