StringBuilder
Previous  

The StringBuilder object provides the following methods and properties


Methods

Append(addstring As String) : Appends addstring to the end of the StringBuilder.

At(index As Int32) : Returns the character at position index in the StringBuilder.

Insert(index As Int32, instring As string) : Inserts instring at the position index in the StringBuilder.

New1(capacity As Int32) : Creates a new StringBuillder with an initial size of capacity characters. A StringBuilder will grow automatically if this initial capacity is not sufficient.

Remove(start As Int32, count As Int32) : Removes count characters from the StringBuilder starting at index position start.

Replace(oldstring As String, newstring As String) : Replaces any occurrences of oldstring in the StringBuilder with newstring.

ToString : Returns a string containing the contents of the StringBuilder.


Properties

I signifies readable, O signifies settable. 

Capacity : Int32[I/O] : Gets or sets  present capacity of the StringBuilder. Capacity does not affect the string value of the current instance. Capacity can be decreased as long as it is not less than Length.

Dllversion : Double [I] : Gets the version number of this library.
 
Length : Int32[I/0] : Gets or sets the present length of the string in the StringBuilder. If the specified length is less than the current length, this StringBuilderis truncated to the specified length. If the specified length is greater than the current length, the end of the string value of this StringBuilder is padded with spaces. If the specified length is greater than the current capacity, Capacity is set to the specified length.