主页
.NET
PHP
JAVA
数据库
Web前端
手机开发
其它
当前位置:
主页
>
.NET
通过字符串获取Color类
时间:
2015/12/3 17:22:00
来源:
互联网
作者:
flyso
点击:
1219 次
public static Color getColor(string s)
{
Color Colors;
if (s.IndexOf("#") >= 0)
{
Colors = ColorTranslator.FromHtml(s);
}
else
{
Colors = Color.FromName(s);
}
return Colors;
}
Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3