Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Represents a single Tree Node

Namespace: Visual3D.Scripting.Collections
Assembly: Visual3D.Scripting (in Visual3D.Scripting.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

      
 C#  Visual Basic 
public class TreeNode<T> : IEnumerable<TreeNode<T>>, 
	IEnumerable
Public Class TreeNode(Of T) _
	Implements IEnumerable(Of TreeNode(Of T)), IEnumerable

Type Parameters

T
Type of the Data Value at the node

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
TreeNode<(Of <(<'T>)>)>()()()()
Initializes a new instance of the TreeNode<(Of <(<'T>)>)> class
TreeNode<(Of <(<'T>)>)>(T)
creates a new root node, and sets Value to value.
Depth
Detach()()()()
Detaches this node from it's parent. Postcondition: this is a root node.
Find(Predicate<(Of <<'(T>)>>))
GetElementPath()()()()
GetEnumerator()()()()
GetIndexPath()()()()
GetIndexPathTo(TreeNode<(Of <<'(T>)>>))
GetNodeAt(IEnumerable<(Of <<'(Int32>)>>))
GetNodeAt(Int32)
GetNodeAt(array<Int32>[]()[][])
GetNodePath()()()()
GetNodePathAsString(Char)
GetNodePathAsString(Char, NodeToString<(Of <<'(T>)>>))
GetValueEnumerator()()()()
HasChildren
returns true if the node has child nodes. See also Implementation Note under this.Childs
IsAncestorOf(TreeNode<(Of <<'(T>)>>))
IsChildOf(TreeNode<(Of <<'(T>)>>))
IsInLineWith(TreeNode<(Of <<'(T>)>>))
IsRoot
returns true if this node is a root node. (Equivalent to this.Parent==null)
Nodes
Parent
returns the parent node, or null if this is a root node
Remove()()()()
Removes the current node and all child nodes recursively from it's parent. Throws an InvalidOperationException if this is a root node.
Root
The Root object this Node belongs to. never null
Siblings
Value

Inheritance Hierarchy

System..::..Object
  Visual3D.Scripting.Collections..::..TreeNode<(Of <(<'T>)>)>

See Also