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
Implements
Inherited Members
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 SourceListLedGroup(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 |
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 |
Led[] | leds | The initial Led of this RGB.NET.Groups.ListLedGroup. |
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 |
IEnumerable<Led> | leds | The initial Led of this RGB.NET.Groups.ListLedGroup. |
Methods
| Edit this page View SourceAddLed(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. |
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. |
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 |
|
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
| Edit this page View SourceMergeLeds(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. |
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. |
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. |
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
| Edit this page View SourceToListUnsafe(out IList<Led>)
Declaration
protected override IDisposable ToListUnsafe(out IList<Led> leds)
Parameters
Type | Name | Description |
---|---|---|
IList<Led> | leds |
Returns
Type | Description |
---|---|
IDisposable |