AbstractStringBuilder.SetCharAt(Int32, Char) 方法

定义

指定索引处的字符设置为 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

参数

index
Int32

要修改的字符的索引。

ch
Char

新字符。

属性

注解

指定索引处的字符设置为 ch。 此序列被更改为表示与旧字符序列相同的新字符序列,只不过它包含位置 index处的字符ch

index 参数必须大于或等于 0,并且必须小于此序列的长度。

java.lang.AbstractStringBuilder.setCharAt(int, char)Java 文档。

此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。

适用于