Class DockLayout
A layout that arranges child controls based on a docking position.
Assembly: MicroLayout.dll
View Source
Declaration
public class DockLayout : MicroLayout, IThemedControl, IControl
Inheritance: System.Object
-> Meadow.Foundation.Graphics.MicroLayout.Control
Implements:
Meadow.Foundation.Graphics.MicroLayout.IThemedControl
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, DockLayout.DockPosition position)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroLayout.IControl | control | The control to add. |
Meadow.Foundation.Graphics.MicroLayout.DockLayout.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. |
OnDraw(MicroGraphics)
Draws the layout using the specified graphics context.
View Source
Declaration
protected override void OnDraw(MicroGraphics graphics)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Foundation.Graphics.MicroGraphics | graphics | The graphics context used to render the layout. |