Gets or sets the length of the current instance.
A int containing the length of the current instance.
Type Reason ArgumentOutOfRangeException The value specified for a set operation is less than 0.
If the specified length is less than the current length, the System.Text.StringBuilder is truncated to the specified length. If the specified length is greater than the current length, the end of the string value of the System.Text.StringBuilder is padded with spaces.
If the specified length is greater than the current StringBuilder.Capacity , StringBuilder.Capacity is set to the specified length.