Skip to main content

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

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

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v23.2.dll

NuGet Package: DevExpress.Data


public void Insert(
    int index,
    T value


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