Click or drag to resize

TextWriter Class

Represents a writer that can write a sequential series of characters. This class is abstract.
Inheritance Hierarchy

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public abstract class TextWriter : IDisposable

The TextWriter type exposes the following members.

Constructors
 NameDescription
Protected methodTextWriter Initializes a new instance of the CrestronIO.TextWriter class.
Protected methodTextWriter(IFormatProvider) Initializes a new instance of the CrestronIO.TextWriter class with the specified format provider.
Top
Properties
 NameDescription
Public propertyEncoding When overridden in a derived class, returns the System.Text.Encoding in which the output is written.
Public propertyFormatProvider Gets an object that controls formatting.
Public propertyNewLine Gets or sets the line terminator string used by the current TextWriter.
Top
Methods
 NameDescription
Public methodClose Closes the current writer and releases any system resources associated with the writer.
Public methodDispose Releases all resources used by the CrestronIO.TextWriter object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the CrestronIO.TextWriter and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFlush Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite(Boolean) Writes the text representation of a Boolean value to the text stream.
Public methodWrite(Char) Writes a character to the text stream.
Public methodWrite(Char) Writes a character array to the text stream.
Public methodWrite(Decimal) Writes the text representation of a decimal value to the text stream.
Public methodWrite(Double) Writes the text representation of an 8-byte floating-point value to the text stream.
Public methodWrite(Int32) Writes the text representation of a 4-byte signed integer to the text stream.
Public methodWrite(Int64) Writes the text representation of an 8-byte signed integer to the text stream.
Public methodWrite(Object) Writes the text representation of an object to the text stream by calling ToString on that object.
Public methodWrite(Single) Writes the text representation of a 4-byte floating-point value to the text stream.
Public methodWrite(String) Writes a string to the text stream.
Public methodWrite(UInt32) Writes the text representation of a 4-byte unsigned integer to the text stream.
Public methodWrite(UInt64) Writes the text representation of an 8-byte unsigned integer to the text stream.
Public methodWrite(String, Object) Writes out a formatted string, using the same semantics as System.String.Format(System.String,System.Object).
Public methodWrite(String, Object) Writes out a formatted string, using the same semantics as System.String.Format(System.String,System.Object).
Public methodWrite(Char, Int32, Int32) Writes a subarray of characters to the text stream.
Public methodWrite(String, Object, Object) Writes out a formatted string, using the same semantics as System.String.Format(System.String,System.Object).
Public methodWriteLine Writes a line terminator to the text stream.
Public methodWriteLine(Boolean) Writes the text representation of a Boolean followed by a line terminator to the text stream.
Public methodWriteLine(Char) Writes a character followed by a line terminator to the text stream.
Public methodWriteLine(Char) Writes an array of characters followed by a line terminator to the text stream.
Public methodWriteLine(Decimal) Writes the text representation of a decimal value followed by a line terminator to the text stream.
Public methodWriteLine(Double) Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text stream.
Public methodWriteLine(Int32) Writes the text representation of a 4-byte signed integer followed by a line terminator to the text stream.
Public methodWriteLine(Int64) Writes the text representation of an 8-byte signed integer followed by a line terminator to the text stream.
Public methodWriteLine(Object) Writes the text representation of an object by calling ToString on this object, followed by a line terminator to the text stream.
Public methodWriteLine(Single) Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text stream.
Public methodWriteLine(String) Writes a string followed by a line terminator to the text stream.
Public methodWriteLine(UInt32) Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text stream.
Public methodWriteLine(UInt64) Writes the text representation of an 8-byte unsigned integer followed by a line terminator to the text stream.
Public methodWriteLine(String, Object) Writes out a formatted string and a new line, using the same semantics as System.String.Format(System.String,System.Object).
Public methodWriteLine(String, Object) Writes out a formatted string and a new line, using the same semantics as System.String.Format(System.String,System.Object).
Public methodWriteLine(Char, Int32, Int32) Writes a subarray of characters followed by a line terminator to the text stream.
Public methodWriteLine(String, Object, Object) Writes out a formatted string and a new line, using the same semantics as System.String.Format(System.String,System.Object).
Top
Fields
 NameDescription
Protected fieldCoreNewLine Stores the new line characters used for this TextWriter.
Public fieldStatic memberNull Provides a TextWriter with no backing store that can be written to, but not read from.
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also