Class AbstractDecoratable<T>
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
AbstractDecoratable<T>
Inherited Members
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public abstract class AbstractDecoratable<T> : AbstractBindable, IBindable, IDecoratable<T>, IDecoratable, INotifyPropertyChanged where T : IDecorator
Type Parameters
Name | Description |
---|---|
T | The type of decorators this decoratable can be decorated with. |
Constructors
| Edit this page View SourceAbstractDecoratable()
Initializes a new instance of the AbstractDecoratable<T> class.
Declaration
protected AbstractDecoratable()
Properties
| Edit this page View SourceDecorators
Gets a readonly-list of all IDecorator attached to this IDecoratable<T>.
Declaration
public IReadOnlyList<T> Decorators { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<T> |
Methods
| Edit this page View SourceAddDecorator(T)
Adds an IDecorator to the IDecoratable.
Declaration
public void AddDecorator(T decorator)
Parameters
Type | Name | Description |
---|---|---|
T | decorator | The IDecorator to be added. |
RemoveAllDecorators()
Removes all IDecorator from the IDecoratable.
Declaration
public void RemoveAllDecorators()
RemoveDecorator(T)
Removes an IDecorator from the IDecoratable.
Declaration
public void RemoveDecorator(T decorator)
Parameters
Type | Name | Description |
---|---|---|
T | decorator | The IDecorator to be removed. |