Class Layout
A layout definition, including local and remote frame definitions.
Inheritance
System.Object
Layout
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
Assembly: FM.LiveSwitch.dll
Syntax
public class Layout
Properties
AllFrames
Gets or sets all frames (local and remote).
Declaration
public LayoutFrame[] AllFrames { get; }
Property Value
Type | Description |
---|---|
LayoutFrame[] |
Height
Gets or sets the layout height.
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
LocalFrame
Gets or sets the local frame.
Declaration
public LayoutFrame LocalFrame { get; set; }
Property Value
Type | Description |
---|---|
LayoutFrame |
Origin
Gets or sets the layout origin.
Declaration
public LayoutOrigin Origin { get; set; }
Property Value
Type | Description |
---|---|
LayoutOrigin |
RemoteFrames
Gets or sets the remote frames.
Declaration
public LayoutFrame[] RemoteFrames { get; set; }
Property Value
Type | Description |
---|---|
LayoutFrame[] |
Width
Gets or sets the layout width.
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
SwapFrames(LayoutFrame, LayoutFrame)
Swaps the properties of two frames.
Declaration
public void SwapFrames(LayoutFrame frame1, LayoutFrame frame2)
Parameters
Type | Name | Description |
---|---|---|
LayoutFrame | frame1 | The first frame. |
LayoutFrame | frame2 | The second frame. |
SwapLocalFrame(Int32)
Swaps the local frame with a remote frame.
Declaration
public void SwapLocalFrame(int remoteFrameIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | remoteFrameIndex | The index of the remote frame. |
SwapRemoteFrames(Int32, Int32)
Swaps two remote frames.
Declaration
public void SwapRemoteFrames(int remoteFrameIndex1, int remoteFrameIndex2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | remoteFrameIndex1 | The index of the first remote frame. |
System.Int32 | remoteFrameIndex2 | The index of the second remote frame. |