PageableListTInsert Method (Int32, Object)

Spotfire 14.3 API Reference

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

C#
public void Insert(
	int index,
	Object value
)

Parameters

index
Type: SystemInt32
The zero-based index at which item should be inserted.
value
Type: SystemObject
The object to insert.

Implements

IListInsert(Int32, Object)
Exceptions

ExceptionCondition
InvalidOperationExceptionThrown if the list is read-only
ArgumentOutOfRangeExceptionThrown if index is less than 0 or index is greater than Count.
ArgumentExceptionvalue is of a type that is not assignable to the PageableListT.
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.

Version Information

Supported in: 14.3, 14.2, 14.1, 14.0, 12.5, 12.4, 12.3, 12.2, 12.1, 12.0, 11.8
See Also

Reference