IndentedTextWriter Class

 

The same as IndentedTextWriter but works in partial trust and adds explicit caching of generated indentation string and also recognizes writing a string that contains just \r\n or \n as a write-line to ensure we indent the next line properly.

Namespace:   System.Data.Entity.Migrations.Utilities
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.MarshalByRefObject
    System.IO.TextWriter
      System.Data.Entity.Migrations.Utilities.IndentedTextWriter

public class IndentedTextWriter : TextWriter

NameDescription
System_CAPS_pubmethodIndentedTextWriter(TextWriter)

Initializes a new instance of the IndentedTextWriter class using the specified text writer and default tab string. Note that the writer passed to this constructor must use the CultureInfo specified by the Culture property.

System_CAPS_pubmethodIndentedTextWriter(TextWriter, String)

Initializes a new instance of the IndentedTextWriter class using the specified text writer and tab string. Note that the writer passed to this constructor must use the CultureInfo specified by the Culture property.

NameDescription
System_CAPS_pubpropertyEncoding

Gets the encoding for the text writer to use.(Overrides TextWriter.Encoding.)

System_CAPS_pubpropertyFormatProvider

(Inherited from TextWriter.)

System_CAPS_pubpropertyIndent

Gets or sets the number of spaces to indent.

System_CAPS_pubpropertyInnerWriter

Gets the TextWriter to use.

System_CAPS_pubpropertyNewLine

Gets or sets the new line character to use.(Overrides TextWriter.NewLine.)

NameDescription
System_CAPS_pubmethodClose()

Closes the document being written to.(Overrides TextWriter.Close().)

System_CAPS_pubmethodCreateObjRef(Type)

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodCurrentIndentation()

Builds a string representing the current indentation level for a new line.

System_CAPS_pubmethodDispose()

(Inherited from TextWriter.)

System_CAPS_protmethodDispose(Boolean)

(Inherited from TextWriter.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFlush()

Flushes the stream.(Overrides TextWriter.Flush().)

System_CAPS_pubmethodFlushAsync()

(Inherited from TextWriter.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodInitializeLifetimeService()

(Inherited from MarshalByRefObject.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone(Boolean)

(Inherited from MarshalByRefObject.)

System_CAPS_protmethodOutputTabs()

Outputs the tab string once for each level of indentation according to the Indent property.

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodWrite(Boolean)

Writes the text representation of a Boolean value to the text stream.(Overrides TextWriter.Write(Boolean).)

System_CAPS_pubmethodWrite(Char)

Writes a character to the text stream.(Overrides TextWriter.Write(Char).)

System_CAPS_pubmethodWrite(Char[])

Writes a character array to the text stream.(Overrides TextWriter.Write(Char[]).)

System_CAPS_pubmethodWrite(Char[], Int32, Int32)

Writes a subarray of characters to the text stream.(Overrides TextWriter.Write(Char[], Int32, Int32).)

System_CAPS_pubmethodWrite(Decimal)

(Inherited from TextWriter.)

System_CAPS_pubmethodWrite(Double)

Writes the text representation of a Double to the text stream.(Overrides TextWriter.Write(Double).)

System_CAPS_pubmethodWrite(Int32)

Writes the text representation of an integer to the text stream.(Overrides TextWriter.Write(Int32).)

System_CAPS_pubmethodWrite(Int64)

Writes the text representation of an 8-byte integer to the text stream.(Overrides TextWriter.Write(Int64).)

System_CAPS_pubmethodWrite(Object)

Writes the text representation of an object to the text stream.(Overrides TextWriter.Write(Object).)

System_CAPS_pubmethodWrite(Single)

Writes the text representation of a Single to the text stream.(Overrides TextWriter.Write(Single).)

System_CAPS_pubmethodWrite(String)

Writes the specified string to the text stream.(Overrides TextWriter.Write(String).)

System_CAPS_pubmethodWrite(String, Object)

Writes out a formatted string, using the same semantics as specified.(Overrides TextWriter.Write(String, Object).)

System_CAPS_pubmethodWrite(String, Object, Object)

Writes out a formatted string, using the same semantics as specified.(Overrides TextWriter.Write(String, Object, Object).)

System_CAPS_pubmethodWrite(String, Object, Object, Object)

(Inherited from TextWriter.)

System_CAPS_pubmethodWrite(String, Object[])

Writes out a formatted string, using the same semantics as specified.(Overrides TextWriter.Write(String, Object[]).)

System_CAPS_pubmethodWrite(UInt32)

(Inherited from TextWriter.)

System_CAPS_pubmethodWrite(UInt64)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteAsync(Char)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteAsync(Char[])

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteAsync(Char[], Int32, Int32)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteAsync(String)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLine()

Writes a line terminator.(Overrides TextWriter.WriteLine().)

System_CAPS_pubmethodWriteLine(Boolean)

Writes the text representation of a Boolean, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Boolean).)

System_CAPS_pubmethodWriteLine(Char)

Writes a character, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Char).)

System_CAPS_pubmethodWriteLine(Char[])

Writes a character array, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Char[]).)

System_CAPS_pubmethodWriteLine(Char[], Int32, Int32)

Writes a subarray of characters, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Char[], Int32, Int32).)

System_CAPS_pubmethodWriteLine(Decimal)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLine(Double)

Writes the text representation of a Double, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Double).)

System_CAPS_pubmethodWriteLine(Int32)

Writes the text representation of an integer, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Int32).)

System_CAPS_pubmethodWriteLine(Int64)

Writes the text representation of an 8-byte integer, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Int64).)

System_CAPS_pubmethodWriteLine(Object)

Writes the text representation of an object, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Object).)

System_CAPS_pubmethodWriteLine(Single)

Writes the text representation of a Single, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(Single).)

System_CAPS_pubmethodWriteLine(String)

Writes the specified string, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(String).)

System_CAPS_pubmethodWriteLine(String, Object)

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.(Overrides TextWriter.WriteLine(String, Object).)

System_CAPS_pubmethodWriteLine(String, Object, Object)

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.(Overrides TextWriter.WriteLine(String, Object, Object).)

System_CAPS_pubmethodWriteLine(String, Object, Object, Object)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLine(String, Object[])

Writes out a formatted string, followed by a line terminator, using the same semantics as specified.(Overrides TextWriter.WriteLine(String, Object[]).)

System_CAPS_pubmethodWriteLine(UInt32)

Writes the text representation of a UInt32, followed by a line terminator, to the text stream.(Overrides TextWriter.WriteLine(UInt32).)

System_CAPS_pubmethodWriteLine(UInt64)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLineAsync()

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLineAsync(Char)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLineAsync(Char[])

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLineAsync(Char[], Int32, Int32)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLineAsync(String)

(Inherited from TextWriter.)

System_CAPS_pubmethodWriteLineNoTabs(String)

Writes the specified string to a line without tabs.

NameDescription
System_CAPS_protfieldCoreNewLine

(Inherited from TextWriter.)

System_CAPS_pubfieldSystem_CAPS_staticCulture

Specifies the culture what will be used by the underlying TextWriter. This static property is read-only. Note that any writer passed to one of the constructors of IndentedTextWriter must use this same culture. The culture is InvariantCulture.

System_CAPS_pubfieldSystem_CAPS_staticDefaultTabString

Specifies the default tab string. This field is constant.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.