Class Container
An element with children, filled with a collection initializer:
new Stack { new Label("a"), new Label("b") }.
Assembly: DarkEffekt.Terminal.UI
Section titled “Assembly: DarkEffekt.Terminal.UI”public abstract class Container : ElementInheritance: System.Object -> DarkEffekt.Terminal.UI.Element
Derived:
DarkEffekt.Terminal.UI.Dock, DarkEffekt.Terminal.UI.Grid, DarkEffekt.Terminal.UI.Stack
Properties
Section titled “Properties”ChildCount
Section titled “ChildCount”public override int ChildCount { get; }Methods
Section titled “Methods”GetChild(int)
Section titled “GetChild(int)”public override Element GetChild(int index)Returns
Section titled “Returns”DarkEffekt.Terminal.UI.Element
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
System.Int32 |
index |
Add(Element)
Section titled “Add(Element)”public void Add(Element child)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.Element | child |
Remove(Element)
Section titled “Remove(Element)”public bool Remove(Element child)Returns
Section titled “Returns”System.Boolean
Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.Element | child |
OnRemoved(Element)
Section titled “OnRemoved(Element)”A child left the container. A panel that keeps placement for its children drops it here.
protected virtual void OnRemoved(Element child)Parameters
Section titled “Parameters”| Type | Name |
|---|---|
| DarkEffekt.Terminal.UI.Element | child |
Clear()
Section titled “Clear()”public void Clear()GetEnumerator()
Section titled “GetEnumerator()”Returns an enumerator that iterates through the collection.
public IEnumerator<Element> GetEnumerator()Returns
Section titled “Returns”System.Collections.Generic.IEnumerator<DarkEffekt.Terminal.UI.Element>: An enumerator that can be used to iterate through the collection.