diff --git a/UniversalExtensions.cs b/UniversalExtensions.cs index bd1f426..ff5560e 100644 --- a/UniversalExtensions.cs +++ b/UniversalExtensions.cs @@ -543,6 +543,15 @@ public static class UniversalExtensions } + /// + /// Convert Hex to Color + /// + /// The converted color + public static Color ToColor(this string str) + { + return ColorTranslator.FromHtml(str); + } + /// /// Convert RGB Value to Hex