ControlCollection.Insert(Int32, ControlElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.