stack

Home > @infiniteobjects/core-library-node > StringBuilder > appendIndentedLine

StringBuilder.appendIndentedLine() method

Append the specified text to the buffer, preceded by the given indentation level and followed by a new line.

Signature:

appendIndentedLine(text: string, indentLevel?: number): void;

Parameters

Parameter Type Description
text string  
indentLevel number (Optional)

Returns:

void

Remarks

Maximum indentation level is 10. If the specified indentation level is greater than 10, it will be clamped to 10.