System.Web.UI.HtmlTextWriter.NewLine Property

Gets or sets the line terminator string used by the System.Web.UI.HtmlTextWriter object.

Syntax

public override string NewLine { set; get; }

Value

a string

Remarks

The default line terminator string is a carriage return, followed by a line feed ("\r\n").

The line terminator string is written to the output stream whenever one of the HtmlTextWriter.WriteLine(string) methods is called. If the HtmlTextWriter.NewLine property is set to null, the default new line character is used.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0