Class LayoutManager
A WinForms layout manager for .NET.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch.WinForms
Assembly: FM.LiveSwitch.WinForms.dll
Syntax
public class LayoutManager : LayoutManager<Control>
Constructors
LayoutManager(Control)
Initializes a new instance of the LayoutManager class.
Declaration
public LayoutManager(Control container)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | container | The layout container. |
LayoutManager(Control, LayoutPreset)
Initializes a new instance of the LayoutManager class.
Declaration
public LayoutManager(Control container, LayoutPreset preset)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | container | The layout container. |
LayoutPreset | preset | The layout preset. |
Properties
Container
Gets the layout container.
Declaration
public Control Container { get; }
Property Value
Type | Description |
---|---|
System.Windows.Forms.Control |
Mode
Gets or sets the mode used by the layout engine. Defaults to FloatLocal.
Declaration
public override LayoutMode Mode { get; set; }
Property Value
Type | Description |
---|---|
LayoutMode |
Overrides
Methods
AddView(Control)
Adds a view to the container.
Declaration
protected override void AddView(Control view)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | view | The view to add. |
Overrides
FM.LiveSwitch.LayoutManager<System.Windows.Forms.Control>.AddView(System.Windows.Forms.Control)
DispatchToMainThread(Action2<Object, Object>, Object, Object)
Dispatches an action to the main thread.
Declaration
protected override void DispatchToMainThread(Action2<object, object> action, object arg1, object arg2)
Parameters
Type | Name | Description |
---|---|---|
Action2<System.Object, System.Object> | action | The action to invoke. |
System.Object | arg1 | The first argument. |
System.Object | arg2 | The second argument. |
Overrides
FM.LiveSwitch.LayoutManager<System.Windows.Forms.Control>.DispatchToMainThread(FM.LiveSwitch.Action2<System.Object, System.Object>, System.Object, System.Object)
Layout()
Positions the local and remote views within the layout.
Declaration
public override void Layout()
Overrides
FM.LiveSwitch.LayoutManager<System.Windows.Forms.Control>.Layout()
RemoveView(Control)
Removes a view from the container.
Declaration
protected override void RemoveView(Control view)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Control | view | The view to remove. |
Overrides
FM.LiveSwitch.LayoutManager<System.Windows.Forms.Control>.RemoveView(System.Windows.Forms.Control)