Freigeben über


Vector.RemoveElementAt(Int32) Method

Definition

Deletes the component at the specified index.

[Android.Runtime.Register("removeElementAt", "(I)V", "GetRemoveElementAt_IHandler")]
public virtual void RemoveElementAt (int index);
[<Android.Runtime.Register("removeElementAt", "(I)V", "GetRemoveElementAt_IHandler")>]
abstract member RemoveElementAt : int -> unit
override this.RemoveElementAt : int -> unit

Parameters

index
Int32

the index of the object to remove

Attributes

Exceptions

if location = size().

Remarks

Deletes the component at the specified index. Each component in this vector with an index greater or equal to the specified index is shifted downward to have an index one smaller than the value it had previously. The size of this vector is decreased by 1.

The index must be a value greater than or equal to 0 and less than the current size of the vector.

This method is identical in functionality to the #remove(int) method (which is part of the List interface). Note that the remove method returns the old value that was stored at the specified position.

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