Show / Hide Table of Contents

Class LayoutExtension

Offers some extensions and helper-methods for layout related things.

Inheritance
object
LayoutExtension
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Layout
Assembly: RGB.NET.Layout.dll
Syntax
public static class LayoutExtension

Methods

| Edit this page View Source

ApplyTo(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.

| Edit this page View Source

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.

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX