nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / TreeNodeBase

TreeNodeBase

Full name Microsoft.VisualBasic.ComponentModel.DataStructures.Tree.TreeNodeBase`1 Assembly Microsoft.VisualBasic.Runtime Members 16

Generic Tree Node base class

00 Remarks

https://www.codeproject.com/Articles/345191/Simple-Generic-Tree

Type Parameters
NameDescription
T

01 Syntax

Microsoft.VisualBasic.ComponentModel.DataStructures.Tree.TreeNodeBase`1

02 Methods

NameOverloadsSummary
.ctor 1
GetLeafNodes 1 List of Leaf Nodes
GetNonLeafNodes 1 List of Non Leaf Nodes
GetRootNode 1 Get the Root Node of the Tree
AddChild 1 Add a Child Tree Node
AddChildren 1 Add a collection of child Tree Nodes
GenericEnumerator 1 enumerates all childs in current tree node
MaxTravelDepth 1
ChildCountsTravel 1

03 Properties

NameOverloadsSummary
Name 1 Name
Parent 1 Parent
ChildNodes 1 Children
MySelf 1 Me/this
IsLeaf 1 True if a Leaf Node
IsRoot 1 True if the Root of the Tree
FullyQualifiedName 1 Dot separated name from the Root to this Tree Node

04 Members

method .ctor #
#ctor(String)
Parameters
NameTypeDescription
nameString

-

method GetLeafNodes #
GetLeafNodes

List of Leaf Nodes

method GetNonLeafNodes #
GetNonLeafNodes

List of Non Leaf Nodes

method GetRootNode #
GetRootNode

Get the Root Node of the Tree

method AddChild #
AddChild(`0)

Add a Child Tree Node

Remarks
Parameters
NameTypeDescription
child`0

-

method AddChildren #
AddChildren(IEnumerable(Of `0))

Add a collection of child Tree Nodes

Parameters
NameTypeDescription
childrenIEnumerable(Of `0)

-

method GenericEnumerator #
GenericEnumerator

enumerates all childs in current tree node

property Name #
Name

Name

property Parent #
Parent

Parent

property ChildNodes #
ChildNodes

Children

property MySelf #
MySelf

Me/this

property IsLeaf #
IsLeaf

True if a Leaf Node

property IsRoot #
IsRoot

True if the Root of the Tree

property FullyQualifiedName #
FullyQualifiedName

Dot separated name from the Root to this Tree Node

method MaxTravelDepth #
MaxTravelDepth()
method ChildCountsTravel #
ChildCountsTravel(Dictionary(Of String, Double), Func(Of T, String))