AbstractList.Remove(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.