C# Color颜色字符串互相转换
C# Color颜色字符串互相转换C# Code: //颜色转字符串,如:#D827A3
var colorStr = System.Drawing.ColorTranslator.ToHtml(colorDialog1.Color);
//字符串转颜色(Color)
var color = System.Drawing.ColorTranslator.FromHtml(colorStr);
//来源:C/S框架网 | www.csframework.com | QQ:23404761
扫一扫加作者微信