System.Text.StringBuilder.Chars Property
Gets or sets the character at a specified position in the current instance.

Syntax

This is the default property for this class.

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

Parameters

index
Documentation for this section has not yet been entered.

Value

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

Exceptions

TypeReason
IndexOutOfRangeException

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

-or-

index is less than zero.

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.

Requirements

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