Search Results for

    Show / Hide Table of Contents

    Interface IHasChildren

    Indicates this item contains child items within it that can themselves contain children

    Namespace: LemonEdge.Utils
    Assembly: Utils.dll
    Syntax
    public interface IHasChildren

    Properties

    Children

    A list of all the child items contained within this item

    Declaration
    IEnumerable<IHasChildren> Children { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IHasChildren>

    Parent

    Holds a link to the parent item (if there is one) that this item is a child of

    Declaration
    IHasChildren Parent { get; }
    Property Value
    Type Description
    IHasChildren

    Methods

    AddChild(IHasChildren)

    Adds a child item to the collection of Children in this item

    Declaration
    void AddChild(IHasChildren item)
    Parameters
    Type Name Description
    IHasChildren item

    The item to add to this items Children. It can not already have another Parent, and this method will set its Parent to this item itself

    ClearChildren()

    Clears all children contained within this item

    Declaration
    void ClearChildren()

    DeleteChild(IHasChildren)

    Removes a child item from the collection of Children in this item

    Declaration
    void DeleteChild(IHasChildren item)
    Parameters
    Type Name Description
    IHasChildren item

    The item to remove from this items Children

    Extension Methods

    HasChildrenExtensions.HasChildren(IHasChildren)
    HasChildrenExtensions.GetAllChildren(IHasChildren)
    HasChildrenExtensions.GetRootParent(IHasChildren)
    HasChildrenExtensions.GetLeafChildNodesOnly(IHasChildren)
    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

    IHasChildren<T>
    BaseHasChildren<T>
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.