HomeProductsSupportDownloadsOnline StoreOnLine DocumentationLicensingAbout UsContact Us
User's Manual - XTTreeview Windows Forms Control for Visual Basic .Net and C# - The Source Code Store .Com - Professional source code for Microsoft Visual Basic and Visual Studio .NET and specialized software components.
Back to Table of Contents
Example
Send Feedback

Add Method (Nodes Collection)

Adds a Style object to the Styles collection.

Syntax:

XTTreeviewVBNCtl.Nodes.Add([Relative As String], [Relationship As E_RELATIONSHIP = 0], [Key As String], [Text As String = "")

The Add Method (Nodes Collection) syntax has these parts:

 Part  Description
XTTreeviewVBNCtl.Nodes An object expression that evaluates to an XTTreeview Control's Nodes collection.
Relative (Optional). The index number or key of a pre-existing Node object. The relationship between the new node and this pre-existing node is found in the next argument, relationship.
Relationship (Optional). Specifies the relative placement of the Node object, as described in Settings.
Key (Optional). A string value that uniquely identifies the Node object.
Text (Optional). The string that appears in the Node.

The settings for Relationship are:

 Setting  Description
0 (E_RELATIONSHIP.RS_UNDEFINED). Undefined. The node is placed a a child node of the root node.
1 (E_RELATIONSHIP.RS_CHILD). Child. The Node becomes a child node of the node named in relative.
2 (E_RELATIONSHIP.RS_FIRST). First. The Node is placed before all other nodes at the same level of the node named in relative.
3 (E_RELATIONSHIP.RS_LAST). Last. The Node is placed after all other nodes at the same level of the node named in relative. Any Node added subsequently may be placed after one added as Last.
4 (E_RELATIONSHIP.RS_PREVIOUS). The Node is placed before the node named in relative.
5 (E_RELATIONSHIP.RS_NEXT). Next. The Node is placed after the node named in relative.

Remarks:

This method adds objects at the top of the list. In order to retrieve the index of the Node object that was added use the collection's Count property.

 

Home | Products | Support | Downloads | OnLine Store

Online Documentation | Licensing | About Us | Contact Us

Privacy Terms of use Copyright (c)2002-2005 The Source Code Store LLC. All trademarks are property of their legal owner.