Table of contents
TOC
Collapse the table of content
Expand the table of content

TreeNode<T> Class

SharePoint Dev Documents|Last Updated: 6/28/2017
|
1 Contributor

Defnines methods for TreeNode

Namespace:OfficeDevPnP.Core.Diagnostics.Tree
Assembly: OfficeDevPnP.Core.dll

Inheritance Hierarchy

System.Object

Syntax

public class TreeNode<T>: ITreeNode<T>, ITreeNode

Constructors

NameDescription
TreeNode()Defalt Constructor
TreeNode(T)Constructor
TreeNode(T, TreeNode)Constructor

Properties

NameDescription
AncestorsGets list of ancestors
ChildNodesGets list of Child nodes
ChildrenGets children node
DepthGets depth of a tree
DescendantsGets list of descendants
HeightGets height of a tree
ParentGets or sets parent of a node
ParentNodeGets parent node
RootGets root node
SubtreeGets sub tree nodes
ValueGets or sets node value

Methods

NameDescription
SetParent(ITreeNode<T>, Boolean)Sets parent node
ToString()Returns comma seperated Depth, height and number of children of a tree as a string

See also

© 2018 Microsoft