TreeNodeCollection.IList.Add(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 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
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.