System.Text.StringBuilder.AppendLine Method

Appends the default line terminator to the end of the current System.Text.StringBuilder object.

Syntax

[System.Runtime.InteropServices.ComVisible(false)]
public StringBuilder AppendLine ()

Returns

A reference to this instance after the append operation has completed.

Remarks

The default line terminator is the current value of the Environment.NewLine property.

The capacity of this instance is adjusted as needed.

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0