Language

AbstractList.Add(Int32, Object) Method

Definition

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

[Android.Runtime.Register("add", "(ILjava/lang/Object;)V", "GetAdd_ILjava_lang_Object_Handler")]
public virtual void Add(int index, Java.Lang.Object? element);
[<Android.Runtime.Register("add", "(ILjava/lang/Object;)V", "GetAdd_ILjava_lang_Object_Handler")>]
override this.Add : int * Java.Lang.Object -> unit

Parameters

index
Int32

index at which the specified element is to be inserted

element
Object

element to be inserted

Implements

Attributes

Remarks

Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Java documentation for java.util.AbstractList.add(int, E).

Java reference for java.util.AbstractList.add.

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