String Builder Class
A thin wrapper over StringBuilder that adds indentation to each line built.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class IndentedStringBuilder
type IndentedStringBuilder = class
Public Class IndentedStringBuilder
The current length of the built string.
Appends the current indent and then the given string to the string being built.
Appends a new line to the string being built.
Appends the current indent, the given string, and a new line to the string being built.
If the given string itself contains a new line, the part of the string after that new line will not be indented.
Separates the given string into lines, and then appends each line, prefixed by the current indent and followed by a new line, to the string being built.
Resets this builder ready to build a new string.
Decrements the indent.
Increments the indent.
Creates a scoped indenter that will increment the indent, then decrement it when disposed.
Returns the built string.