//转换Color的Name
String _colorText = "Color [Red]";
String _colorName=new Regex(@"(?<=\[)[^\]]+").Match(_ColorText).Value;
Color _color=Color.FromName(_colorName);
//转换Color的RGB
Color color = System.Drawing.ColorTranslator.FromHtml("#FF8400");
//转换Color的Name
String _colorText = "Color [Red]";
String _colorName=new Regex(@"(?<=\[)[^\]]+").Match(_ColorText).Value;
Color _color=Color.FromName(_colorName);
//转换Color的RGB
Color color = System.Drawing.ColorTranslator.FromHtml("#FF8400");