Share via


ControlCollection.Insert(Int32, ControlElement) Method

Definition

Inserts an item to the IList<T> at the specified index.

public:
 virtual void Insert(int index, Microsoft::Uii::Common::ControlElement ^ item);
public void Insert (int index, Microsoft.Uii.Common.ControlElement item);
abstract member Insert : int * Microsoft.Uii.Common.ControlElement -> unit
override this.Insert : int * Microsoft.Uii.Common.ControlElement -> unit
Public Sub Insert (index As Integer, item As ControlElement)

Parameters

index
Int32

The zero-based index at which item should be inserted.

item
ControlElement

The object to insert into the IList<T>.

Implements

Exceptions

index is not a valid index in the IList<T>.

The IList<T> is read-only.

Applies to