AbstractStringBuilder.SetCharAt(Int32, Char) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定索引处的字符设置为 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 文档。
此页面的某些部分是基于 创建和共享的工作进行的修改,并根据 署名许可中所述的条款使用。