PageableList T  Insert Method (Int32, Object) TIBCO Spotfire 6.0 API Reference

Namespace: Spotfire.Dxp.Data.Collections
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 13.19.7018.3940 (13.19.7018.3940)
Syntax

public void Insert(
	int index,
	Object value
)

Parameters

index
Type: System Int32
The zero-based index at which item should be inserted.
value
Type: System Object
The object to insert.

Implements

IList Insert(Int32, Object)
Exceptions

ExceptionCondition
System InvalidOperationExceptionThrown if the list is read-only
System ArgumentOutOfRangeExceptionThrown if index is less than 0 or index is greater than Count.
System ArgumentExceptionvalue is of a type that is not assignable to the PageableList T .
Remarks

If index is equal to Count, item is added to the end of the list. Otherwise, the complete list is re-created and the element inserted at the correct position.

This method is O(n), where n is Count.

See Also