string转换成color string col = "#FF8400"; this.BackColor = System.Drawing.ColorTranslator.FromHtml(col); color转换成string Color mycolor = this.BackColor; string strcol = System.Drawing.ColorTranslator.ToHtml(mycolor); MessageBox.Show(strcol);
转载于:https://www.cnblogs.com/hengbo/archive/2009/03/05/2232506.html
转载请注明原文地址: https://win8.8miu.com/read-1484840.html