A newer version of this page is available. Switch to the current version.

DXCollectionBase<T>.Insert(Int32, T) Method

Inserts the specified element into the collection at the specified position.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v19.2.dll


public void Insert(
    int index,
    T value
Public Sub Insert(
    index As Integer,
    value As T


Name Type Description
index Int32

An integer value which represents the zero-based index at which the element should be inserted.

value T

A <T> object to insert into the collection.


If the index passed as a parameter to this method is less than zero, or exceeds the number of items in the collection, this method throws an exception of the ArgumentOutOfRangeException type.


See Also