Skip to main content

Class GridControlsCollection

Represents a collection of controls specifically designed for grid-based layouts.

Assembly: MicroLayout.dll​
View Source​
Declaration
public class GridControlsCollection : ControlsCollection, IEnumerable<IControl>, IEnumerable

Inheritance: System.Object -> Meadow.Foundation.Graphics.MicroLayout.ControlsCollection

Implements:
System.Collections.Generic.IEnumerable<Meadow.Foundation.Graphics.MicroLayout.IControl>, System.Collections.IEnumerable

Methods​

Add(params IControl[])​

View Source​
Declaration
public void Add(params IControl[] controls)
Parameters​
TypeName
Meadow.Foundation.Graphics.MicroLayout.IControl[]controls

Add(IControl, int, int, int, int, Alignment)​

Adds one or more display controls to the collection.

View Source​
Declaration
public void Add(IControl control, int row, int col, int rowspan = 1, int colspan = 1, GridLayout.Alignment alignment = Alignment.Center)
Parameters​
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.IControlcontrolThe control to add.
System.Int32rowThe row index of the control.
System.Int32colThe column index of the control.
System.Int32rowspanThe number of rows the control spans.
System.Int32colspanThe number of columns the control spans.
Meadow.Foundation.Graphics.MicroLayout.GridLayout.AlignmentalignmentThe alignment of the control within the cell.

Implements​

  • System.Collections.Generic.IEnumerable<Meadow.Foundation.Graphics.MicroLayout.IControl>
  • System.Collections.IEnumerable