StringBuilder.SetCharAt(Int32, Char) Method

Definition

Sets the character at the index.

[Android.Runtime.Register("setCharAt", "(IC)V", "")]
public override void SetCharAt (int index, char ch);
[<Android.Runtime.Register("setCharAt", "(IC)V", "")>]
override this.SetCharAt : int * char -> unit

Parameters

index
Int32

the zero-based index of the character to replace.

ch
Char

the character to set.

Attributes

Exceptions

if index is negative or greater than or equal to the current Length().

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to