Android Guides | Samples

Java.Lang.String.CharAt Method

Returns the char at index.

Syntax

[Android.Runtime.Register("charAt", "(I)C", "")]
public Char CharAt (Int32 index)

Parameters

index
the zero-based index in this string.

Exceptions

TypeReason
IndexOutOfBoundsExceptionif index or index >= length().

Remarks

Returns the char at index.

[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