Class ControlsCollection
Represents a collection of display controls on a Meadow.Foundation.Graphics.MicroLayout.DisplayScreen.
Assembly: MicroLayout.dll
View Source
public sealed class ControlsCollection : IEnumerable<IControl>, IEnumerable
Implements:
System.Collections.Generic.IEnumerable<Meadow.Foundation.Graphics.MicroLayout.IControl>
, System.Collections.IEnumerable
Properties
this[int]
Gets a control from the Controls collection by index
View Source
public IControl this[int index] { get; }
Count
Gets the number of display controls in the collection.
View Source
public int Count { get; }
Methods
Clear()
Removes all display controls from the collection.
View Source
public void Clear()
Add(params IControl[])
Adds one or more display controls to the collection.
View Source
public void Add(params IControl[] controls)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroLayout.IControl[] | controls | The display controls to add. |
Remove(IControl)
Removes a control from the collection.
View Source
public bool Remove(IControl control)
Returns
System.Boolean
: True if the control was removed; otherwise, false.
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroLayout.IControl | control | The control to remove. |
GetEnumerator()
Returns an enumerator that iterates through the collection of display controls.
View Source
public IEnumerator<IControl> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<Meadow.Foundation.Graphics.MicroLayout.IControl>
: An enumerator that can be used to iterate through the collection.
Implements
System.Collections.Generic.IEnumerable<Meadow.Foundation.Graphics.MicroLayout.IControl>
System.Collections.IEnumerable