List Methods

The List type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds a value in the list
Public methodAddRange
Adds multiple values at once in the list
Public methodClear
Clears the list
Public methodContains
Return true if the list contains the value.
Public methodConvertT
Converts each value.
Public methodCopyTo
Copies the values to an array
Public methodDistinct
Remove duplicates
Public methodFirst
Returns the first item
Public methodGetEnumerator
Returns the List enumerator
Public methodIndexOf
Returns the index of the value
Public methodInsert
Insert a value at index
Public methodLast
Returns the last item
Public methodLastIndexOf
The index of the value starting from the end.
Public methodRemove
Remove the value
Public methodRemoveAt
Remove the value at index
Public methodSort
Sorts the elements
Public methodToArray
Returns an array with the values
Public methodCode exampleToExcel
Copies the values to Excel. The target can be an address, a worksheet or a range.
Public methodValues
Returns an array with the values
Top
See Also