Επεξεργασία

Κοινή χρήση μέσω


TreeNodeCollection.IList.Add(Object) Method

Definition

Adds an object to the end of the tree node collection.

 virtual int System.Collections.IList.Add(System::Object ^ node) = System::Collections::IList::Add;
int IList.Add (object node);
int IList.Add (object? node);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (node As Object) As Integer Implements IList.Add

Parameters

node
Object

The object to add to the tree node collection.

Returns

The zero-based index value of the TreeNode that was added to the tree node collection.

Implements

Exceptions

node is currently assigned to another TreeView control.

node is null.

Remarks

If node is not a TreeNodeCollection, the IList.Add method will use the string returned by the ToString method of the TreeNode class.

Applies to