Language

AbstractList.Remove(Int32) Method

Definition

Removes the element at the specified position in this list (optional operation).

[Android.Runtime.Register("remove", "(I)Ljava/lang/Object;", "GetRemove_IHandler")]
public virtual Java.Lang.Object? Remove(int index);
[<Android.Runtime.Register("remove", "(I)Ljava/lang/Object;", "GetRemove_IHandler")>]
override this.Remove : int -> Java.Lang.Object

Parameters

index
Int32

the index of the element to be removed

Returns

the element previously at the specified position

Implements

Attributes

Exceptions

if removing from this list is not supported.

if location = size()

Remarks

Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.

Java documentation for java.util.AbstractList.remove(int).

Java reference for java.util.AbstractList.remove.

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