Sage Modeling and Simulation Library

ITreeNode Members

The ITreeNode<(Of <(<'T>)>)> type exposes the following members.

Methods


  Name Description
Public method AddChild(T, Boolean)
Public method AddChild(ITreeNode<(Of <<'(T>)>>), Boolean)
Public method DescendantNodesBreadthFirst
Returns an iterator that traverses the descendant nodes breadth first, top down.
Public method DescendantNodesDepthFirst
Returns an iterator that traverses the descendant nodes depth first, top down.
Public method DescendantsBreadthFirst
Returns an IEnumerable that traverses the descendant payloads breadth first.
Public method DescendantsDepthFirst
Returns an IEnumerable that traverses the descendant payloads depth first.
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 ForEachChild(Action<(Of <<'(T>)>>))
Public method ForEachChild(Action<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method HasChild(ITreeNode<(Of <<'(T>)>>))
Public method HasChild(T)
Public method IsChildOf
Determines whether this node is a child of the specified 'possible parent' node.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method RemoveChild(T)
Public method RemoveChild(ITreeNode<(Of <<'(T>)>>))
Public method SetParent
Sets the parent of this node, but does not then set this node as a child to that parent if childAlreadyAdded is set to true.
Public method Siblings
Gets an enumerable over this node's siblings in the hierarchy.
Public method SortChildren(Comparison<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method SortChildren(IComparer<(Of <<'(ITreeNode<(Of <<'(T>)>>)>)>>))
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties


  Name Description
Public property ChildNodes
Provides an IEnumerable over the child nodes (i.e. the payloads of the children.)
Public property Children
Gets the children, if any, of this node. Return value will be an empty collection if there are no children.
Public property MyEventController
Gets the tree node event controller. This should only be obtained by a descendant or parent TreeNode or TreeNodeCollection to report changes that are taking place with respect to the subject TreeNode so that it may report its own changes.
Public property Parent
Gets or sets the parent of this tree node.
Public property Payload
Gets the payload of this node. The payload is the node itself, if the subject nodes inherit from TreeNode<T>. If the Payload is null, and you inherit from TreeNode<T>, you need to set SelfReferential to true in the ctor.
Public property Root
Gets the root node above this one.

Events


  Name Description
Public event ChildrenResorted
Fired when this node's child list has been resorted.
Public event GainedChild
Fired when this node has gained a child.
Public event GainedParent
Fired when this node is attached to a parent.
Public event LostChild
Fired when this node has lost a child.
Public event LostParent
Fired when this node is detached from a parent.
Public event SubtreeChanged
Fired when a change (Gain, Loss or Child-Resorting) in this node's subtree has occurred.