Export (0) Print
Expand All

TreeNodeCollection Members

Represents a collection of TreeNode objects in the TreeView control. This class cannot be inherited.

The following tables list the members exposed by the TreeNodeCollection type.

  Name Description
Public method TreeNodeCollection Overloaded. Initializes a new instance of the TreeNodeCollection class.
Top

  Name Description
Public property Count Gets the number of items in the TreeNodeCollection object.
Public property IsSynchronized Gets a value indicating whether access to the TreeNodeCollection is synchronized (thread safe).
Public property Item Gets the TreeNode object at the specified index in the TreeNodeCollection object.
Public property SyncRoot Gets an object that can be used to synchronize access to the TreeNodeCollection object.
Top

(see also Protected Methods )
  Name Description
Public method Add Appends the specified TreeNode object to the end of the TreeNodeCollection object.
Public method AddAt Inserts the specified TreeNode object in a TreeNodeCollection object at the specified index location.
Public method Clear Empties the TreeNodeCollection object.
Public method Contains Determines whether the specified TreeNode object is in the collection.
Public method CopyTo Copies all the items from the TreeNodeCollection object to a compatible one-dimensional array of TreeNode objects, starting at the specified index in the target array.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through a TreeNodeCollection object.
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Determines the index of the specified TreeNode object.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Remove Removes the specified TreeNode object from the TreeNodeCollection object.
Public method RemoveAt Removes the TreeNode object at the specified index location from the TreeNodeCollection object.
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

  Name Description
Explicit interface implementation Method System.Collections.ICollection.CopyTo Copies all the items from the TreeNodeCollection object to a compatible one-dimensional System.Array, starting at the specified index in the target array.
Explicit interface implementation Method System.Web.UI.IStateManager.LoadViewState Loads the TreeNodeCollection object's previously saved view state.
Explicit interface implementation Method System.Web.UI.IStateManager.SaveViewState Saves the changes to view state to a System.Object.
Explicit interface implementation Method System.Web.UI.IStateManager.TrackViewState Instructs the TreeNodeCollection to track changes to its view state.
Explicit interface implementation Property System.Web.UI.IStateManager.IsTrackingViewState Gets a value indicating whether the TreeNodeCollection object is saving changes to its view state.
Top

Community Additions

ADD
Show:
© 2014 Microsoft