/// <summary> /// Convert HTML hex color string to a color object. /// </summary> /// <param name="tb"></param> /// <returns></returns> public static Color HtmlHexClrToClrObj(IPlugin.IPluginHost host, string hexcolor) { Color clr = Color.Transparent; try { clr = ColorTranslator.FromHtml(hexcolor); } catch (Exception) { host.LogPluginError("Invalid html hex color: " + hexcolor); } return clr; }