日期:2014-05-17 浏览次数:20401 次
string s = "#ff0000"; s = s.Replace("#", ""); Color c = Color.FromArgb(int.Parse(s, System.Globalization.NumberStyles.HexNumber));