Skip to main content

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
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.IControl[]controlsThe display controls to add.

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