Inserts the specified System.Web.UI.WebControls.TreeNode object in a System.Web.UI.WebControls.TreeNodeCollection object at the specified index location.
- index
- The zero-based index location at which to insert the System.Web.UI.WebControls.TreeNode object.
- child
- The System.Web.UI.WebControls.TreeNode object to add.
Use the TreeNodeCollection.AddAt(int, TreeNode) method to insert the specified System.Web.UI.WebControls.TreeNode object in the System.Web.UI.WebControls.TreeNodeCollection at the specified zero-based index.
The System.Web.UI.WebControls.TreeNodeCollection allows you to insert null references (Nothing in Visual Basic), as well as duplicate System.Web.UI.WebControls.TreeNode objects.
As an alternative, you can append a System.Web.UI.WebControls.TreeNode object to the end of the System.Web.UI.WebControls.TreeNodeCollection by using the TreeNodeCollection.Add(TreeNode) method.