Język

AlteredCharSequence.CharAt(Int32) Method

Definition

Returns the character at index.

[Android.Runtime.Register("charAt", "(I)C", "GetCharAt_IHandler")]
public virtual char CharAt(int off);
[<Android.Runtime.Register("charAt", "(I)C", "GetCharAt_IHandler")>]
abstract member CharAt : int -> char
override this.CharAt : int -> char

Parameters

off
Int32

the index of the character to return.

Returns

the specified char value

Implements

Attributes

Remarks

Returns the char value at the specified index. An index ranges from zero to length() - 1. The first char value of the sequence is at index zero, the next at index one, and so on, as for array indexing.

If the char value specified by the index is a surrogate, the surrogate value is returned.

Android reference for android.text.AlteredCharSequence.charAt.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to