Back to Devexpress

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

corelibraries-devexpress-dot-utils-dot-dxcollectionbase-1-dot-insert-x28-system-dot-int32-0-x29.md

latest1.5 KB
Original Source

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

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

Namespace : DevExpress.Utils

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

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

Parameters

NameTypeDescription
indexInt32

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.

|

Remarks

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

DXCollectionBase<T> Class

DXCollectionBase<T> Members

DevExpress.Utils Namespace