Windows Dev Center

StringBuilder.AppendLine Method (String)

Appends a copy of the specified string and the default line terminator to the end of the current StringBuilder object.

Namespace:  System.Text
Assembly:  mscorlib (in mscorlib.dll)

public StringBuilder AppendLine(
	string value


Type: System.String
The String to append.

Return Value

Type: System.Text.StringBuilder
A reference to this instance after the append operation has completed.


Enlarging the value of this instance would exceed its maximum capacity.

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

The capacity of this instance is adjusted as needed.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2015 Microsoft