Class LayoutExtension
Offers some extensions and helper-methods for layout related things.
Inherited Members
Namespace: RGB.NET.Layout
Assembly: RGB.NET.Layout.dll
Syntax
public static class LayoutExtension
Methods
| Edit this page View SourceApplyTo(IDeviceLayout, IRGBDevice, bool, bool)
Applies the specified layout to the specified device.
Declaration
public static void ApplyTo(this IDeviceLayout layout, IRGBDevice device, bool createMissingLeds = false, bool removeExcessiveLeds = false)
Parameters
Type | Name | Description |
---|---|---|
IDeviceLayout | layout | The layout to apply. |
IRGBDevice | device | The device to apply the layout to. |
bool | createMissingLeds | Indicates if LEDs that are in the layout but not on the device should be created. |
bool | removeExcessiveLeds | Indicates if LEDS that are on the device but not in the layout should be removed. |
Save(IDeviceLayout, Stream)
Saves the specified layout to the given stream.
Declaration
public static void Save(this IDeviceLayout layout, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
IDeviceLayout | layout | The layout to save. |
Stream | stream | The stream to save to. |
Save(IDeviceLayout, string)
Saves the specified layout to the given location.
Declaration
public static void Save(this IDeviceLayout layout, string targetFile)
Parameters
Type | Name | Description |
---|---|---|
IDeviceLayout | layout | The layout to save. |
string | targetFile | The location to save to. |