Wisej.Web.TreeNodeCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.2.0.0)
Represents a collection of TreeNode objects.
public class TreeNodeCollection : IList, ICollection, IEnumerable, IList<TreeNode>, ICollection<TreeNode>, IEnumerable<TreeNode>Public Class TreeNodeCollection
Inherits IList
Implements ICollection, IEnumerable, IList(Of TreeNode), ICollection(Of TreeNode), IEnumerable(Of TreeNode): Returns the total number of objects in the collection.
: Returns a value indicating whether the collection is read-only.
: Returns or sets the at the specified index in the collection.
Throws:
The being assigned is also a parent causing a circular reference.
The value is null.
The index value is less than 0 or is greater than the number of tree nodes in the collection.
: Returns the with the specified key from the collection.
Adds a new tree node with the specified label text to the end of the current .
Returns: . A that represents the tree node being added to the collection.
Creates a new with the specified key and text, and adds it to the collection.
Returns: . The that was added to the collection.
Creates a with the specified key, text, and image, and adds it to the collection.
Returns: . The that was added to the collection.
Creates a with the specified key, text, and image, and adds it to the collection.
Returns: . The that was added to the collection.
Creates a with the specified key, text, and images, and adds it to the collection.
Returns: . The tree node that was added to the collection.
Creates a with the specified key, text, and images, and adds it to the collection.
Returns: . The that was added to the collection.
Adds a previously created to the end of the .
Returns: . The zero-based index value of the added to the .
Throws:
node is null.
The node is currently assigned to another or it is a parent node causing a circular reference.
Adds an array of previously created objects to the collection.
Throws:
nodes is null or one of the items in the collection is null.
nodes is the child of another .
Removes all tree nodes from the collection.
Removes and disposes all tree nodes from the collection.
Determines whether the specified is a member of the collection.
Returns: . true if the is a member of the collection; otherwise, false.
Determines whether the collection contains a with the specified key.
Returns: . true to indicate the collection contains a with the specified key; otherwise, false.
Copies the entire collection into an existing array at a specified location within the array.
Finds the objects with specified key, optionally searching sub nodes.
Returns: . An array of objects whose property matches the specified key.
Returns an enumerator that can be used to iterate through the .
Returns: . An that represents the .
Returns the index of the specified in the collection.
Returns: . The zero-based index of the item found in the tree node collection; otherwise, -1.
Returns the index of the first occurrence of a with the specified key.
Returns: . The zero-based index of the first occurrence of a tree node with the specified key, if found; otherwise, -1.
Inserts an existing tree node into the tree node collection at the specified location.
Throws:
node is null.
The node is currently assigned to another or it is a parent node causing a circular reference.
Creates a with the specified text and inserts it at the specified index.
Returns: . The that was inserted in the collection.
Creates a tree node with the specified text and key, and inserts it into the collection.
Returns: . The that was inserted in the collection.
Creates a with the specified key, text, and image, and inserts it into the collection at the specified index.
Returns: . The that was inserted in the collection.
Creates a with the specified key, text, and image, and inserts it into the collection at the specified index.
Returns: . The that was inserted in the collection.
Creates a with the specified key, text, and images, and inserts it into the collection at the specified index.
Returns: . The that was inserted in the collection.
Creates a with the specified key, text, and images, and inserts it into the collection at the specified index.
Returns: . The that was inserted in the collection.
Removes the specified from the .
Throws:
node is null.
Removes a tree node from the tree node collection at a specified index.
Removes the with the specified key from the collection.
Fired when the collection changes.
The index of the image to be displayed in the tree node when it is in a selected state.
The key of the image to display when the node is in a selected state.
The index of the image to display in the .
The key of the image to display in the .
The index of the image to display in the .
selectedImageIndex
The index of the image to display in the when it is in a selected state.
The key of the image to display in the .
selectedImageKey
The key of the image to display in the when it is in a selected state.
text
The label text displayed by the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
imageIndex
The index of the image to display in the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
imageKey
The image to display in the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
imageIndex
The index of the image to display in the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
imageKey
The key of the image to display in the TreeNode.
node
The TreeNode to add to the collection.
nodes
An array of TreeNode objects representing the tree nodes to add to the collection.
dispose
Indicates whether to dispose the tree nodes removed from the collection.
node
The TreeNode to locate in the collection.
key
The name of the TreeNode to search for.
dest
The destination array.
index
The index in the destination array at which storing begins.
key
The name of the tree node to search for.
searchAllChildren
true to search child nodes of tree nodes; otherwise, false.
node
The TreeNode to locate in the collection.
key
The name of the tree node to search for.
index
The indexed location within the collection to insert the TreeNode.
node
The TreeNode to insert into the collection.
index
The location within the collection to insert the TreeNode.
text
The text to display in the TreeNode.
index
The location within the collection to insert the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
index
The location within the collection to insert the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
index
The location within the collection to insert the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
index
The location within the collection to insert the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
index
The location within the collection to insert the TreeNode.
key
The name of the TreeNode.
text
The text to display in the TreeNode.
node
The TreeNode to remove.
index
The index of the TreeNode to remove.
key
The name of the tree node to remove from the collection.
selectedImageIndex
selectedImageKey
imageIndex
imageKey
imageIndex
imageKey