Skip to main content

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​
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.IControlcontrolThe control to add.
Meadow.Foundation.Graphics.MicroLayout.AlignmentLayout.DockPositionpositionThe docking position for the control.

Remove(IControl)​

Removes a control from the layout.

View Source​
Declaration
public void Remove(IControl control)
Parameters​
TypeNameDescription
Meadow.Foundation.Graphics.MicroLayout.IControlcontrolThe control to remove.

Implements​