Compartilhar via


AbstractStringBuilder.SetCharAt(Int32, Char) Method

Definition

The character at the specified index is set to ch.

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

Parameters

index
Int32

the index of the character to modify.

ch
Char

the new character.

Attributes

Remarks

The character at the specified index is set to ch. This sequence is altered to represent a new character sequence that is identical to the old character sequence, except that it contains the character ch at position index.

The index argument must be greater than or equal to 0, and less than the length of this sequence.

Java documentation for java.lang.AbstractStringBuilder.setCharAt(int, char).

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