Appends a copy of the specified characters in a String to the end of the current StringBuilder.
[Visual Basic] Overloads Public Function Append( _ ByVal value As String, _ ByVal startIndex As Integer, _ ByVal count As Integer _ ) As StringBuilder [C#] public StringBuilder Append( string value, int startIndex, int count ); [C++] public: StringBuilder* Append( String* value, int startIndex, int count ); [JScript] public function Append( value : String, startIndex : int, count : int ) : StringBuilder;
A reference to the current StringBuilder with charCount characters from value, beginning at startIndex, appended.
Exception Type | Condition |
---|---|
ArgumentException | If charCount or startIndex is less than zero, or startIndex + charCount is less than the length of value. |
The capacity is adjusted as needed.
StringBuilder Class | StringBuilder Members | System.Text Namespace | StringBuilder.Append Overload List | String