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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.