Search Results for

    Show / Hide Table of Contents

    Class TreeNode

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

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

    Constructors

    TreeNode(Func<object, int>, 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
    Func<object, int> getOrder

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

    object item

    The Item for this TreeNode

    TreeNode(Func<object, int>, 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
    Func<object, int> getOrder

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

    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
    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
    object item

    The Item for this TreeNode

    TreeNode parent

    The Parent of this TreeNode

    Properties

    Item

    The associated item held against the class implementing this ITreeNode implementation

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

    The item associated with this treenode

    Implements

    IHasChildren<T>
    ITreeNode
    IHasChildren

    Extension Methods

    HasChildrenExtensions.GetAllChildren(IHasChildren)
    HasChildrenExtensions.GetLeafChildNodesOnly(IHasChildren)
    HasChildrenExtensions.GetRootParent(IHasChildren)
    HasChildrenExtensions.HasChildren(IHasChildren)
    HasChildrenExtensions.MaxTreeDepth(IHasChildren)
    HasChildrenExtensions.GetAllChildren<T>(IHasChildren<T>)
    HasChildrenExtensions.ContainsMatchingNode<T>(T, Func<T, bool>)
    HasChildrenExtensions.CopyNode<T>(T, HasChildrenExtensions.CreateCopiedNode<T>)
    HasChildrenExtensions.CopyNode<T>(T, T, HasChildrenExtensions.CreateCopiedNode<T>)
    HasChildrenExtensions.GetLeafChildNodesOnly<T>(T)
    HasChildrenExtensions.GetMatchingNode<T>(T, Func<T, bool>)
    HasChildrenExtensions.GetPath<T>(T, string, Func<T, string>)
    HasChildrenExtensions.GetRootParent<T>(T)
    HasChildrenExtensions.GetRootToNode<T>(T)
    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    ITreeNode
    ITreeNode<T>
    ITreeNode<T, TN>
    BaseTreeNode<T, TN>
    TreeNode<T>
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.