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
| Type | Name |
|---|---|
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
| Type | Name | Description |
|---|---|---|
| Meadow.Foundation.Graphics.MicroLayout.IControl | control | The control to add. |
System.Int32 | row | The row index of the control. |
System.Int32 | col | The column index of the control. |
System.Int32 | rowspan | The number of rows the control spans. |
System.Int32 | colspan | The number of columns the control spans. |
| Meadow.Foundation.Graphics.MicroLayout.GridLayout.Alignment | alignment | The alignment of the control within the cell. |
Implements
System.Collections.Generic.IEnumerable<Meadow.Foundation.Graphics.MicroLayout.IControl>System.Collections.IEnumerable