TreeNodeCollection
Wisej.Web.TreeNodeCollection
Last updated
Wisej.Web.TreeNodeCollection
Last updated
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.5.0.0)
Represents a collection of TreeNode objects.
Int32: Returns the total number of TreeNode objects in the collection.
Boolean: Returns a value indicating whether the collection is read-only.
TreeNode: Returns or sets the TreeNode at the specified index in the collection.
Throws:
ArgumentException The TreeNode being assigned is also a parent causing a circular reference.
ArgumentNullException The value is null.
ArgumentOutOfRangeException The index value is less than 0 or is greater than the number of tree nodes in the collection.
TreeNode: Returns the TreeNode with the specified key from the collection.
Adds a new tree node with the specified label text to the end of the current TreeNodeCollection.
text
Returns: TreeNode. A TreeNode that represents the tree node being added to the collection.
Creates a new TreeNode with the specified key and text, and adds it to the collection.
key
text
Returns: TreeNode. The TreeNode that was added to the collection.
Creates a TreeNode with the specified key, text, and image, and adds it to the collection.
key
text
imageIndex
Returns: TreeNode. The TreeNode that was added to the collection.
Creates a TreeNode with the specified key, text, and image, and adds it to the collection.
key
text
imageKey
Returns: TreeNode. The TreeNode that was added to the collection.
Creates a TreeNode with the specified key, text, and images, and adds it to the collection.
key
text
imageIndex
selectedImageIndex
The index of the image to be displayed in the tree node when it is in a selected state.
Returns: TreeNode. The tree node that was added to the collection.
Creates a TreeNode with the specified key, text, and images, and adds it to the collection.
key
text
imageKey
selectedImageKey
The key of the image to display when the node is in a selected state.
Returns: TreeNode. The TreeNode that was added to the collection.
Adds a previously created TreeNode to the end of the TreeNodeCollection.
node
Returns: Int32. The zero-based index value of the TreeNode added to the TreeNodeCollection.
Throws:
ArgumentNullException node is null.
ArgumentException The node is currently assigned to another TreeView or it is a parent node causing a circular reference.
Adds an array of previously created TreeNode objects to the collection.
nodes
Throws:
ArgumentNullException nodes is null or one of the items in the collection is null.
ArgumentException nodes is the child of another TreeView.
Removes all tree nodes from the collection.
Removes and disposes all tree nodes from the collection.
dispose
Indicates whether to dispose the tree nodes removed from the collection.
Determines whether the specified TreeNode is a member of the collection.
node
Returns: Boolean. true if the TreeNode is a member of the collection; otherwise, false.
Determines whether the collection contains a TreeNode with the specified key.
key
Returns: Boolean. true to indicate the collection contains a TreeNode with the specified key; otherwise, false.
Copies the entire collection into an existing array at a specified location within the array.
dest
The destination array.
index