Share via


AppendLine Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Function AppendLine As StringBuilder
public StringBuilder AppendLine()
public:
StringBuilder^ AppendLine()
member AppendLine : unit -> StringBuilder 
public function AppendLine() : StringBuilder

Return Value

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

Exceptions

Exception Condition
ArgumentOutOfRangeException

Enlarging the value of this instance would exceed MaxCapacity.

Remarks

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

The capacity of this instance is adjusted as needed.

.NET Framework Security

See Also

Reference

StringBuilder Class

AppendLine Overload

System.Text Namespace