Export (0) Print
Expand All

DesignerActionListCollection.Insert Method

Inserts the supplied DesignerActionList into the collection at the specified position.

Namespace:  System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

public void Insert(
	int index,
	DesignerActionList value


Type: System.Int32

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

Type: System.ComponentModel.Design.DesignerActionList

The DesignerActionList to insert into the collection.


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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

© 2015 Microsoft