ChtmlTextWriter Constructor (TextWriter, String)

 

Initializes a new instance of the ChtmlTextWriter class with the specified line indentation.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

new : 
        writer:TextWriter *
        tabString:string -> ChtmlTextWriter

Parameters

writer
Type: System.IO.TextWriter

The TextWriter that renders the markup content.

tabString
Type: System.String

The number of spaces defined in the Indent.

The ChtmlTextWriter constructor, which takes both an instance of the TextWriter class and a string as parameters, calls the Html32TextWriter constructor that takes the same parameters when it creates an instance of the ChtmlTextWriter class.

The following code example demonstrates how to create a custom class named CustomChtmlTextWriter that is derived from the ChtmlTextWriter class. It creates two constructors that you can use to create an instance of the custom class with the same pattern as all classes that derive, directly or indirectly, from the HtmlTextWriter class.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: