Share via


AppendLine Method (String)

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

Appends a copy of the specified string followed by 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 ( _
    str As String _
) As StringBuilder
public StringBuilder AppendLine(
    string str
)
public:
StringBuilder^ AppendLine(
    String^ str
)
member AppendLine : 
        str:string -> StringBuilder 
public function AppendLine(
    str : String
) : StringBuilder

Parameters

Return Value

Type: System.Text. . :: . .StringBuilder
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.

.NET Framework Security

See Also

Reference

StringBuilder Class

AppendLine Overload

System.Text Namespace