Android Guides | Samples

Java.Lang.String.GetChars Method

Copies the given subsequence of this string to the given array starting at the given offset.

Syntax

[Android.Runtime.Register("getChars", "(II[CI)V", "")]
public Void GetChars (Int32 start, Int32 end, Char[] buffer, Int32 index)

Parameters

start
the start offset in this string.
end
the end+1 offset in this string.
buffer
the destination array.
index
the start offset in the destination array.

Exceptions

TypeReason
NullPointerExceptionif buffer is null.
IndexOutOfBoundsExceptionif start , end > length(), start > end, index , end - start > buffer.length - index

Remarks

Copies the given subsequence of this string to the given array starting at the given offset.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1