Szerkesztés

Megosztás a következőn keresztül:


DesignerActionListCollection.Insert(Int32, DesignerActionList) Method

Definition

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

public:
 void Insert(int index, System::ComponentModel::Design::DesignerActionList ^ value);
public void Insert (int index, System.ComponentModel.Design.DesignerActionList value);
public void Insert (int index, System.ComponentModel.Design.DesignerActionList? value);
member this.Insert : int * System.ComponentModel.Design.DesignerActionList -> unit
Public Sub Insert (index As Integer, value As DesignerActionList)

Parameters

index
Int32

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

value
DesignerActionList

The DesignerActionList to insert into the collection.

Exceptions

index is less than 0 or greater than the count of elements in the current collection.

Remarks

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.

Applies to

See also