Sage Modeling and Simulation Library

ITreeNode Members

The ITreeNode type exposes the following members.

Methods


  Name Description
Public method AddChild
Adds a child to this object.
Public method ClearChildren
Removes all children.
Public method Equals(System.Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetChild
Finds the child of this node that has the specified guid key.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetRoot
Gets the root node at or above this node.
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RemoveChild
Removes a child from this object.
Public method ResequenceChildren
Sorts children according to the supplied IComparer.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method ToStringDeep
Produces a string representation of the entire tree below this node.

Properties


  Name Description
Public property Children
The children of this object.
Public property IsLeaf
True if this implementer has no children.
Public property IsReadOnly
True if the tree cannot be reconfigured through this implementer (no adding/removing parents or children.)
Public property IsRoot
True if this implementer has no parent.
Public property Parent
The parent of this object.

Events


  Name Description
Public event OnAboutToBeRemoved
Fires when this object is about to be removed from a parent's child list.
Public event OnAboutToGainChild
Fires when this object is about to gain a new member of it's child list.
Public event OnAboutToLoseChild
Fires when this object is about to lose a new member of it's child list.
Public event OnGainedChild
Fires after this object has gained a new member of it's child list.
Public event OnLostChild
Fires after this object has lost a new member of it's child list.
Public event OnWasRemoved
Fires after this object has been removed from a parent's child list.