Class AlignmentLayout
A layout that arranges child controls based on a docking position.
Assembly: MicroLayout.dll
View Source
Declaration
public class AlignmentLayout : LayoutBase, ILayout, IThemedControl, IControlContainer, IControl
Inheritance: System.Object -> Meadow.Foundation.Graphics.MicroLayout.Control -> Meadow.Foundation.Graphics.MicroLayout.ThemedControl -> Meadow.Foundation.Graphics.MicroLayout.LayoutBase
Implements:
Meadow.Foundation.Graphics.MicroLayout.ILayout, Meadow.Foundation.Graphics.MicroLayout.IThemedControl, Meadow.Foundation.Graphics.MicroLayout.IControlContainer, Meadow.Foundation.Graphics.MicroLayout.IControl
Properties
Padding
Gets or sets the padding around the controls in the layout.
View Source
Declaration
public int Padding { get; set; }
Methods
Add(IControl, DockPosition)
Adds a control to the layout at the specified docking position.
View Source
Declaration
public void Add(IControl control, AlignmentLayout.DockPosition position)
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Foundation.Graphics.MicroLayout.IControl | control | The control to add. |
| Meadow.Foundation.Graphics.MicroLayout.AlignmentLayout.DockPosition | position | The docking position for the control. |
Remove(IControl)
Removes a control from the layout.
View Source
Declaration
public void Remove(IControl control)
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Foundation.Graphics.MicroLayout.IControl | control | The control to remove. |