Search Results for

    Show / Hide Table of Contents

    Class TreeNode

    Holds an associated Item and child TreeNode items through the BaseHasChildren<T> implementation.

    Inheritance
    System.Object
    BaseHasChildren<TreeNode>
    TreeNode
    Implements
    IHasChildren<TreeNode>
    ITreeNode
    IHasChildren
    Inherited Members
    BaseHasChildren<TreeNode>.Order
    BaseHasChildren<TreeNode>.Children
    BaseHasChildren<TreeNode>.AddChild(TreeNode)
    BaseHasChildren<TreeNode>.DeleteChild(TreeNode)
    BaseHasChildren<TreeNode>.ClearChildren()
    BaseHasChildren<TreeNode>.Parent
    BaseHasChildren<TreeNode>.AddChild(IHasChildren)
    BaseHasChildren<TreeNode>.DeleteChild(IHasChildren)
    BaseHasChildren<TreeNode>.IHasChildren.Children
    BaseHasChildren<TreeNode>.IHasChildren.Parent
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Utils
    Assembly: Utils.dll
    Syntax
    public class TreeNode : BaseHasChildren<TreeNode>, IHasChildren<TreeNode>, ITreeNode, IHasChildren

    Constructors

    TreeNode(Func<Object, Int32>, Object)

    Creates a new TreeNode with the specified item as the associated Item for this TreeNode, along with a specified function to determine the order of the Children items

    Declaration
    public TreeNode(Func<object, int> getOrder, object item)
    Parameters
    Type Name Description
    System.Func<System.Object, System.Int32> getOrder

    A function that specifies how to order the child items of this TreeNode

    System.Object item

    The Item for this TreeNode

    TreeNode(Func<Object, Int32>, Object, TreeNode)

    Creates a new TreeNode with the specified item as the associated Item for this TreeNode, along with the specified parent as the Parent of this TreeNode, and with a specified function to determine the order of the Children items

    Declaration
    public TreeNode(Func<object, int> getOrder, object item, TreeNode parent)
    Parameters
    Type Name Description
    System.Func<System.Object, System.Int32> getOrder

    A function that specifies how to order the child items of this TreeNode

    System.Object item

    The Item for this TreeNode

    TreeNode parent

    The Parent of this TreeNode

    TreeNode(Object)

    Creates a new TreeNode with the specified item as the associated Item for this TreeNode

    Declaration
    public TreeNode(object item)
    Parameters
    Type Name Description
    System.Object item

    The Item for this TreeNode

    TreeNode(Object, TreeNode)

    Creates a new TreeNode with the specified item as the associated Item for this TreeNode, along with the specified parent as the Parent of this TreeNode

    Declaration
    public TreeNode(object item, TreeNode parent)
    Parameters
    Type Name Description
    System.Object item

    The Item for this TreeNode

    TreeNode parent

    The Parent of this TreeNode

    Properties

    Item

    Declaration
    public object Item { get; }
    Property Value
    Type Description
    System.Object

    Implements

    IHasChildren<T>
    ITreeNode
    IHasChildren

    Extension Methods

    HasChildrenExtensions.HasChildren(IHasChildren)
    HasChildrenExtensions.GetAllChildren(IHasChildren)
    HasChildrenExtensions.GetRootParent(IHasChildren)
    HasChildrenExtensions.GetLeafChildNodesOnly(IHasChildren)
    HasChildrenExtensions.GetAllChildren<T>(IHasChildren<T>)
    HasChildrenExtensions.GetRootParent<T>(T)
    HasChildrenExtensions.GetLeafChildNodesOnly<T>(T)
    HasChildrenExtensions.ContainsMatchingNode<T>(T, Func<T, Boolean>)
    HasChildrenExtensions.GetMatchingNode<T>(T, Func<T, Boolean>)
    HasChildrenExtensions.MaxTreeDepth(IHasChildren)
    HasChildrenExtensions.GetRootToNode<T>(T)
    HasChildrenExtensions.GetPath<T>(T, String, Func<T, String>)
    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)

    See Also

    ITreeNode
    ITreeNode<T>
    ITreeNode<T, TN>
    BaseTreeNode<T, TN>
    TreeNode<T>
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.