DesignerActionListCollection::Insert Method (Int32, DesignerActionList^)
Inserts the supplied DesignerActionList into the collection at the specified position.
Assembly: System.Design (in System.Design.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index at which value should be inserted.
- value
-
Type:
System.ComponentModel.Design::DesignerActionList^
The DesignerActionList to insert into the collection.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | index is less than 0 or greater than the count of elements in the current collection. |
If the index parameter is equal to the value of the Count property, the new element is added to the end of the collection.
Internally, the DesignerActionListCollection class uses a System.Collections::ArrayList to contain its collection of DesignerActionList objects. Because lists maintain contiguous elements, the elements that follow the insertion point move down to accommodate the new element. This rearrangement changes the index of the elements after the insertion point.
for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state:
Available since 2.0