語言

StringBuilder.SetCharAt(Int32, Char) 方法

定義

將字元設於 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

參數

index
Int32

要替換的字元的零基索引。

ch
Char

角色要設定。

屬性

例外狀況

若 index 為負或大於或等於電流 Length()。

備註

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於