Search Results for

    Show / Hide Table of Contents

    Class TreeNode<T>

    Defnines methods for TreeNode

    Inheritance
    System.Object
    TreeNode<T>
    PnPMonitoredScope
    Tree<T>
    Namespace: PnP.Framework.Diagnostics.Tree
    Assembly: PnP.Framework.dll
    Syntax
    public class TreeNode<T> : object, ITreeNode<T>, ITreeNode where T : new()
    Type Parameters
    T

    Generic type

    Constructors

    TreeNode()

    Defalt Constructor

    Declaration
    public TreeNode()

    TreeNode(T)

    Constructor

    Declaration
    public TreeNode(T Value)
    Parameters
    T Value

    Generic type value

    TreeNode(T, TreeNode<T>)

    Constructor

    Declaration
    public TreeNode(T Value, TreeNode<T> Parent)
    Parameters
    T Value

    Generic type value

    TreeNode<T> Parent

    TreeNode

    Properties

    Ancestors

    Gets list of ancestors

    Declaration
    public IEnumerable<ITreeNode> Ancestors { get; }
    Property Value
    IEnumerable<ITreeNode>

    Implements
    ITreeNode.Ancestors

    ChildNodes

    Gets list of Child nodes

    Declaration
    public IEnumerable<ITreeNode> ChildNodes { get; }
    Property Value
    IEnumerable<ITreeNode>

    Implements
    ITreeNode.ChildNodes

    Children

    Gets children node

    Declaration
    public TreeNodeList<T> Children { get; }
    Property Value
    TreeNodeList<T>

    Implements
    ITreeNode<T>.Children

    Depth

    Gets depth of a tree

    Declaration
    public int Depth { get; }
    Property Value
    System.Int32

    Implements
    ITreeNode.Depth

    Descendants

    Gets list of descendants

    Declaration
    public IEnumerable<ITreeNode> Descendants { get; }
    Property Value
    IEnumerable<ITreeNode>

    Implements
    ITreeNode.Descendants

    Height

    Gets height of a tree

    Declaration
    public int Height { get; }
    Property Value
    System.Int32

    Implements
    ITreeNode.Height

    Parent

    Gets or sets parent of a node

    Declaration
    public ITreeNode<T> Parent { get; set; }
    Property Value
    ITreeNode<T>

    Implements
    ITreeNode<T>.Parent

    ParentNode

    Gets parent node

    Declaration
    public ITreeNode ParentNode { get; }
    Property Value
    ITreeNode

    Implements
    ITreeNode.ParentNode

    Root

    Gets root node

    Declaration
    public ITreeNode<T> Root { get; }
    Property Value
    ITreeNode<T>

    Implements
    ITreeNode<T>.Root

    Subtree

    Gets sub tree nodes

    Declaration
    public IEnumerable<ITreeNode> Subtree { get; }
    Property Value
    IEnumerable<ITreeNode>

    Value

    Gets or sets node value

    Declaration
    public T Value { get; set; }
    Property Value
    T

    Implements
    ITreeNode<T>.Value

    Methods

    SetParent(ITreeNode<T>, Boolean)

    Sets parent node

    Declaration
    public void SetParent(ITreeNode<T> node, bool updateChildNodes = true)
    Parameters
    ITreeNode<T> node

    Tree node to set as parent

    System.Boolean updateChildNodes

    Based on boolean value updates child nodes

    Implements
    ITreeNode<T>.SetParent(ITreeNode<T>, Boolean)

    ToString()

    Returns comma seperated Depth, height and number of children of a tree as a string

    Declaration
    public override string ToString()
    Returns
    System.String

    Returns comma seperated Depth, height and number of children of a tree as a string

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer