共用方式為


Sys.StringBuilder appendLine Method

Appends a string with a line terminator to the end of the Sys.StringBuilder instance.

var stringBuilderVar = new Sys.StringBuilder();
stringBuilderVar.appendLine(text);

Arguments

  • text
    (Optional) The string to append with a line terminator to the end of the StringBuilder instance.

Remarks

Use the appendLine method to append a specified string and a line terminator to the end of a Stringbuilder instance. The line terminator is a combination of a carriage return and a newline character. If no string is specified in text, only the line terminator is appended.

See Also

Reference

Sys.StringBuilder Class

Other Resources

Language Reference