DesignerActionListCollection::Insert Method (Int32, DesignerActionList^)

 

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
)

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.

NamedPermissionSet

for full access to system resources. Demand values: LinkDemand, InheritanceDemand. Associated state:

.NET Framework
Available since 2.0
Return to top
Show: