PageableListTInsert Method (Int32, T) TIBCO Spotfire 7.11 API Reference

Namespace: Spotfire.Dxp.Data.Collections
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 30.0.11525.4184 (30.0.11525.4184)
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

ExceptionCondition
InvalidOperationExceptionThrown if the list is read-only
ArgumentOutOfRangeExceptionThrown if index is less than 0 or index is greater than Count.
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: 7.9, 7.8, 7.7, 7.6, 7.5, 7.11, 7.10, 7.0
See Also

Reference