diff --git a/RGB.NET.Core/Decorators/AbstractIDecorateable.cs b/RGB.NET.Core/Decorators/AbstractIDecorateable.cs
index aa7996d..9772b97 100644
--- a/RGB.NET.Core/Decorators/AbstractIDecorateable.cs
+++ b/RGB.NET.Core/Decorators/AbstractIDecorateable.cs
@@ -37,6 +37,13 @@ namespace RGB.NET.Core
decorator.OnDetached(this);
}
+ ///
+ public void RemoveAllDecorators()
+ {
+ foreach (T decorator in Decorators.ToList())
+ RemoveDecorator(decorator);
+ }
+
#endregion
}
}
diff --git a/RGB.NET.Core/Decorators/IDecoratable.cs b/RGB.NET.Core/Decorators/IDecoratable.cs
index 898efb1..1930942 100644
--- a/RGB.NET.Core/Decorators/IDecoratable.cs
+++ b/RGB.NET.Core/Decorators/IDecoratable.cs
@@ -25,5 +25,10 @@
///
/// The to be removed.
void RemoveDecorator(T decorator);
+
+ ///
+ /// Removes all from the .
+ ///
+ void RemoveAllDecorators();
}
}