Home About Rice Downloads Documents Others Cooker CookerGX
Documents  >  Class  >  list  >  RemoveAt(int)
list class : RemoveAt(int) method

Description

Removes the element at the specified index of the list.

Syntax

listInstance.RemoveAt(int index)

Arguments

ClassNameDescription
intindexPosition to remove.

Return value

None

Sample code

//anyList is a instance of list{string} type.

anyList.RemoveAt(0);

Notes

It's a wrapper of the System.Collections.Generic.List<t>.RemoveAt(Int32).

The index is 0-based.

Links for reference

Copyright © Rice All rights reserved.