Partager via


TreeNodeCollection.IList.Insert(Int32, Object) Méthode

Définition

Insère un nœud d’arborescence existant dans la collection de nœuds d’arborescence à l’emplacement spécifié.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ node) = System::Collections::IList::Insert;
void IList.Insert(int index, object node);
void IList.Insert(int index, object? node);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, node As Object) Implements IList.Insert

Paramètres

index
Int32

Emplacement indexé dans la collection pour insérer le nœud d’arborescence.

node
Object

À TreeNode insérer dans la collection.

Implémente

Exceptions

node est actuellement affecté à un autre TreeView.

- ou -

node n’est pas un TreeNode.

Remarques

Si la Sorted propriété est définie truesur , le index paramètre est ignoré. L’arborescence TreeNode est insérée et triée TreeView à nouveau.

S’applique à