Interface IDecorator
Represents a basic decorator.
Namespace: RGB.NET.Core
Assembly: RGB.NET.Core.dll
Syntax
public interface IDecorator
  Properties
| Edit this page View SourceIsEnabled
Gets or sets if the IDecorator is enabled and will be used.
Declaration
bool IsEnabled { get; set; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
Order
Gets or sets the order in which multiple decorators should be applied on the same object. Higher orders are processed first.
Declaration
int Order { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
Methods
| Edit this page View SourceOnAttached(IDecoratable)
Attaches this IDecorator to the specified target.
Declaration
void OnAttached(IDecoratable decoratable)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IDecoratable | decoratable | The object this IDecorator should be attached to.  | 
      
OnDetached(IDecoratable)
Detaches this IDecorator from the specified target.
Declaration
void OnDetached(IDecoratable decoratable)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IDecoratable | decoratable | The object this IDecorator should be detached from.  |