Show / Hide Table of Contents

Class ListLedGroup

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

Inheritance
object
AbstractBindable
AbstractDecoratable<ILedGroupDecorator>
AbstractLedGroup
ListLedGroup
Implements
IBindable
ILedGroup
IDecoratable<ILedGroupDecorator>
IDecoratable
INotifyPropertyChanged
IEnumerable<Led>
IEnumerable
Inherited Members
AbstractLedGroup.Surface
AbstractLedGroup.Brush
AbstractLedGroup.ZIndex
AbstractLedGroup.OnAttach()
AbstractLedGroup.OnDetach()
AbstractLedGroup.GetEnumerator()
AbstractDecoratable<ILedGroupDecorator>.Decorators
AbstractDecoratable<ILedGroupDecorator>.AddDecorator(ILedGroupDecorator)
AbstractDecoratable<ILedGroupDecorator>.RemoveDecorator(ILedGroupDecorator)
AbstractDecoratable<ILedGroupDecorator>.RemoveAllDecorators()
AbstractBindable.PropertyChanged
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public sealed class ListLedGroup : AbstractLedGroup, IBindable, ILedGroup, IDecoratable<ILedGroupDecorator>, IDecoratable, INotifyPropertyChanged, IEnumerable<Led>, IEnumerable

Constructors

| Edit this page View Source

ListLedGroup(RGBSurface?)

Initializes a new instance of the AbstractLedGroup class.

Declaration
public ListLedGroup(RGBSurface? surface)
Parameters
Type Name Description
RGBSurface surface

Specifies the surface to attach this group to or null if the group should not be attached on creation.

| Edit this page View Source

ListLedGroup(RGBSurface?, params Led[])

Initializes a new instance of the RGB.NET.Groups.ListLedGroup class.

Declaration
public ListLedGroup(RGBSurface? surface, params Led[] leds)
Parameters
Type Name Description
RGBSurface surface

Specifies the surface to attach this group to or null if the group should not be attached on creation.

Led[] leds

The initial Led of this RGB.NET.Groups.ListLedGroup.

| Edit this page View Source

ListLedGroup(RGBSurface?, IEnumerable<Led>)

Initializes a new instance of the RGB.NET.Groups.ListLedGroup class.

Declaration
public ListLedGroup(RGBSurface? surface, IEnumerable<Led> leds)
Parameters
Type Name Description
RGBSurface surface

Specifies the surface to attach this group to or null if the group should not be attached on creation.

IEnumerable<Led> leds

The initial Led of this RGB.NET.Groups.ListLedGroup.

Methods

| Edit this page View Source

AddLed(params Led[])

Adds the specified LED(s) to this ListLedGroup.

Declaration
public void AddLed(params Led[] leds)
Parameters
Type Name Description
Led[] leds

The LED(s) to add.

| Edit this page View Source

AddLeds(IEnumerable<Led>)

Adds the specified Led to this ListLedGroup.

Declaration
public void AddLeds(IEnumerable<Led> leds)
Parameters
Type Name Description
IEnumerable<Led> leds

The Led to add.

| Edit this page View Source

ContainsLed(Led)

Checks if a specified LED is contained by this ledgroup.

Declaration
public bool ContainsLed(Led led)
Parameters
Type Name Description
Led led

The LED which should be checked.

Returns
Type Description
bool

true if the LED is contained by this ledgroup; otherwise, false.

| Edit this page View Source

GetLeds()

Gets a enumerable containing all leds in this group.

Declaration
protected override IEnumerable<Led> GetLeds()
Returns
Type Description
IEnumerable<Led>

A enumerable containing all leds of this group.

Overrides
AbstractLedGroup.GetLeds()
| Edit this page View Source

MergeLeds(ILedGroup)

Merges the Led from the specified ledgroup in this ledgroup.

Declaration
public void MergeLeds(ILedGroup groupToMerge)
Parameters
Type Name Description
ILedGroup groupToMerge

The ledgroup to merge.

| Edit this page View Source

RemoveLed(params Led[])

Removes the specified LED(s) from this ListLedGroup.

Declaration
public void RemoveLed(params Led[] leds)
Parameters
Type Name Description
Led[] leds

The LED(s) to remove.

| Edit this page View Source

RemoveLeds(IEnumerable<Led>)

Removes the specified Led from this ListLedGroup.

Declaration
public void RemoveLeds(IEnumerable<Led> leds)
Parameters
Type Name Description
IEnumerable<Led> leds

The Led to remove.

| Edit this page View Source

ToList()

Returns a list containing all Led in this group.

Declaration
public override IList<Led> ToList()
Returns
Type Description
IList<Led>

A list containing all Led in this group.

Overrides
AbstractLedGroup.ToList()
| Edit this page View Source

ToListUnsafe(out IList<Led>)

Declaration
protected override IDisposable ToListUnsafe(out IList<Led> leds)
Parameters
Type Name Description
IList<Led> leds
Returns
Type Description
IDisposable
Overrides
AbstractLedGroup.ToListUnsafe(out IList<Led>)

Implements

IBindable
ILedGroup
IDecoratable<T>
IDecoratable
INotifyPropertyChanged
IEnumerable<T>
IEnumerable

Extension Methods

LedGroupExtension.Attach(ILedGroup, RGBSurface)
LedGroupExtension.Detach(ILedGroup)
LedGroupExtension.Exclude(ILedGroup, params Led[])
LedGroupExtension.ToListLedGroup(ILedGroup)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX