StringBuilder

StringBuilder


Allows easy manipulation, concatenation and removal of strings and characters.


Implements:

IObject 

Public:

Properties:

NameDescription
 Capacity (get) Returns the buffer size of the string value.  
 Capacity (let) Sets the amount of memory allocated in characters.  
 Chars (get) Returns a character from the string value.  
 Chars (let) Sets a character in the string value.  
 FillCharacter (get) Returns the fill character used to pad empty space.  
 FillCharacter (let) Sets the fill character used to pad empty space.  
 Length (get) Returns the length of the current string value.  
 Length (let) Sets the length of the current string value.  

Methods:

NameDescription
 Append Appends the string representation of the specified value to this instance.  
 AppendChar Appends a Unicode character a specified number of times to the end of string value.  
 AppendFormat Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance. Each format item is replaced by the string representation of a single argument.  
 AppendFormatArray Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance. Each format item is replaced by the string representation of a corresponding argument in a parameter array.  
 AppendFormatArrayEx Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance. Each format item is replaced by the string representation of a corresponding argument in a parameter array using a specified format provider.  
 AppendFormatEx Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance. Each format item is replaced by the string representation of a single argument.  
 AppendLine Appends the supplied string and a Carriage-Return/Linefeed to the end of the StringBuilder.  
 AppendString This function is designed to append strings quickly.  
 Clear Removes all characters from the current StringBuilder instance.  
 CopyTo Copies a set of characters from the StringBuilder into a character array.  
 EnsureCapacity Ensures that the internal buffer has atleast the requested amount.  
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 GetHashCode Returns a pseudo-unique number identifying this instance.  
 Insert Inserts a string into the current string value.  
 InsertChars Inserts an array of characters into the string value.  
 Remove Removes a number of characters from the string value.  
 Replace Replaces a substring in the string value with a new string.  
 ToString Returns the current version of the string value.  

Remarks

This class can be used to quickly minpulate strings. It allows for easy concatenation, removal and modification of the current underlying string value.

See Also

Project CorLib Overview

Class StringBuilder Overview

Constructors

NumberFormatInfo

DateTimeFormatInfo