Interface IDecoratable<T>
Represents a basic decoratable.
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public interface IDecoratable<T> : IDecoratable, INotifyPropertyChanged where T : IDecorator
Type Parameters
| Name | Description |
|---|---|
| T | The type of decorators this decoratable can be decorated with. |
Properties
| Edit this page View SourceDecorators
Gets a readonly-list of all IDecorator attached to this IDecoratable<T>.
Declaration
IReadOnlyList<T> Decorators { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<T> |
Methods
| Edit this page View SourceAddDecorator(T)
Adds an IDecorator to the IDecoratable.
Declaration
void AddDecorator(T decorator)
Parameters
| Type | Name | Description |
|---|---|---|
| T | decorator | The IDecorator to be added. |
RemoveAllDecorators()
Removes all IDecorator from the IDecoratable.
Declaration
void RemoveAllDecorators()
RemoveDecorator(T)
Removes an IDecorator from the IDecoratable.
Declaration
void RemoveDecorator(T decorator)
Parameters
| Type | Name | Description |
|---|---|---|
| T | decorator | The IDecorator to be removed. |