Inserts an element into the PageableListT at the specified index.
Namespace: Spotfire.Dxp.Data.Collections
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 66.0.19621.1485 (66.0.19621.1485)
Syntax
C#
public void Insert( int index, T item )
Parameters
- index
- Type: SystemInt32
The zero-based index at which item should be inserted. - item
- Type: T
The object to insert. The value can be null for reference types.
Implements
IListTInsert(Int32, T)Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown if the list is read-only |
ArgumentOutOfRangeException | Thrown if index is less than 0 or index is greater than Count. |
Remarks
This method is O(n), where n is Count.
Version Information
Supported in: 14.4, 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also