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
See Also
IHasChildren<T>