Condividi tramite


AbstractStringBuilder.CharAt(Int32) Method

Definition

Returns the char value in this sequence at the specified index.

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

Parameters

index
Int32

the index of the desired char value.

Returns

the char value at the specified index.

Implements

Attributes

Remarks

Returns the char value in this sequence at the specified index. The first char value is at index 0, the next at index 1, and so on, as in array indexing.

The index argument must be greater than or equal to 0, and less than the length of this sequence.

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

Java documentation for java.lang.AbstractStringBuilder.charAt(int).

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