語言

StringBuffer.GetChars(Int32, Int32, Char[], Int32) 方法

定義

將請求的字元序列複製到 char[] 從 開始 idx的 。

[Android.Runtime.Register("getChars", "(II[CI)V", "")]
public void GetChars(int srcBegin, int srcEnd, char[]? dst, int dstBegin);
[<Android.Runtime.Register("getChars", "(II[CI)V", "")>]
override this.GetChars : int * int * char[] * int -> unit

參數

srcBegin
Int32

包含性來源起始索引。

srcEnd
Int32

獨家來源終端索引。

dst
Char[]

目的字元陣列。

dstBegin
Int32

複製字元放置的目的索引。

實作

屬性

例外狀況

如果 start , end > length(), start > end, index , end - start > buffer.length - index

備註

Java 文件 java.lang.StringBuffer.getChars(int, int, char[], int)。

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

適用於