Udostępnij za pośrednictwem


Vector.ElementAt(Int32) Method

Definition

Returns the component at the specified index.

[Android.Runtime.Register("elementAt", "(I)Ljava/lang/Object;", "GetElementAt_IHandler")]
public virtual Java.Lang.Object? ElementAt (int index);
[<Android.Runtime.Register("elementAt", "(I)Ljava/lang/Object;", "GetElementAt_IHandler")>]
abstract member ElementAt : int -> Java.Lang.Object
override this.ElementAt : int -> Java.Lang.Object

Parameters

index
Int32

an index into this vector

Returns

the component at the specified index

Attributes

Exceptions

if location = size().

Remarks

Returns the component at the specified index.

This method is identical in functionality to the #get(int) method (which is part of the List interface).

Java documentation for java.util.Vector.elementAt(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

See also