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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.