Initializes a new instance of the StringBuilder class from the specified substring, with the specified capacity.
[Visual Basic]
Overloads Public Sub New( _
ByVal value As String, _ ByVal startIndex As Integer, _ ByVal length As Integer, _ ByVal capacity As Integer _)[C#]
public StringBuilder(
string value, int startIndex, int length, int capacity);[C++]
public: StringBuilder(
String* value, int startIndex, int length, int capacity);[JScript]
public function StringBuilder(
value : String,startIndex : int,length : int,capacity : int);
Parameters
value
The string that contains the substring used to initialize the new instance. If value is a null reference (in Visual Basic Nothing), the new StringBuilder will contain the empty string (that is, it contains Empty).
startIndex
The position at which the substring begins.
length
The number of characters in the substring.
capacity
The suggested starting size of the StringBuilder. This size can increase as more characters are added. The maximum number of characters the current string may contain is set by capacity.