Mono Class Library: System.Text.StringBuilder Overview | Members

System.Text.StringBuilder.Chars Property

Gets or sets the character at a specified position in the current instance. [Edit]

This is the default property for this class.

public char this [int index] { set; get; }

Parameters

index
Documentation for this section has not yet been entered. [Edit]

Value

A char containing the Unicode character at location index in the current instance. [Edit]

Exceptions

TypeReason
IndexOutOfRangeException

index is greater than or equal to the length of the current instance.

-or-

index is less than zero.

[Edit]

Remarks

index is the position of a character within the System.Text.StringBuilder. The first character in the string is at index 0. The length of a string is the number of characters it contains. The last accessible character of a System.Text.StringBuilder instance is at the index StringBuilder.Length - 1. [Edit]

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0