Inserts the specified element at the specified position in this list.

Namespace: Endeca.Navigation
Assembly: Endeca.Navigation (in Endeca.Navigation.dll) Version: 6.2.0.0 (0.0.0.0)

Syntax

C#
public virtual void Add(
	int index,
	Object elementAt
)
Visual Basic
Public Overridable Sub Add ( _
	index As Integer, _
	elementAt As Object _
)
Visual C++
public:
virtual void Add(
	int index, 
	Object^ elementAt
)

Parameters

index
Type: System..::..Int32
The zero-based index of the element to add.
elementAt
Type: System..::..Object
The element to be inserted.

Remarks

Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptionindex is out of range.

See Also