HtmlTextWriter.DefaultTabString Field

Definition

Represents a single tab character.

C#
public const string DefaultTabString;

Field Value

Examples

The following code example demonstrates how to create a constructor that takes a TextWriter object as a parameter and passes the DefaultTabString field as a parameter argument to a second version of the constructor. When this constructor is called from code, the DefaultTabString field defines the indentation policy for the instance of the markup writer that is used by a page or an adapter.

C#
// Create a markup class constructor that uses the
// DefaultTabString property to establish indent settings
// for the writer.
public SimpleHtmlTextWriter(TextWriter writer)
    :
    this(writer, DefaultTabString)
{
}

Remarks

The single tab is represented by the ASCII 9 character.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also