Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
DynamicElement.cs
1using System.Threading.Tasks;
2
4{
10 {
18 : base(Document, Parent)
19 {
20 }
21
26 {
27 get;
28 }
29
34 public override async Task Draw(DrawingState State)
35 {
36 ILayoutElement[] Children = this.DynamicChildren;
37
38 if (!(Children is null))
39 {
40 foreach (ILayoutElement E in Children)
41 {
42 if (E.IsVisible)
43 await E.Draw(State);
44 }
45 }
46
47 }
48 }
49}
Contains a 2D layout document.
Abstract base class of dynamic layout elements (i.e. elements that can generate child elements dynami...
override async Task Draw(DrawingState State)
Draws layout entities.
abstract ILayoutElement[] DynamicChildren
Dynamic array of children
DynamicElement(Layout2DDocument Document, ILayoutElement Parent)
Abstract base class of dynamic layout elements (i.e. elements that can generate child elements dynami...
Abstract base class for layout elements.
Interface for layout elements that generate children dynamically.
Base interface for all layout elements.
Task Draw(DrawingState State)
Draws layout entities.
bool IsVisible
If the element is visible or not.