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
Dolgozzon együtt velünk a GitHubon
A tartalom forrása a GitHubon található, ahol létrehozhat és áttekinthet problémákat és lekéréses kérelmeket is. További információért tekintse meg a közreműködői útmutatónkat.