Color类色彩查看.,winform,aspx

//放入aspx页面中查看效果
foreach (var item in typeof(System.Drawing.Color).GetMembers())
{
try
{
if (item.MemberType == System.Reflection.MemberTypes.Property)
{
Panel p
= new Panel();
p.Width
= 300;
p.Height
= 60;
p.GroupingText
= item.Name;
p.BackColor
= System.Drawing.Color.FromName(item.Name);
this.Controls.Add(p);
}
}
catch
{

}
}

posted on 2011-05-13 14:19  N_unknown  阅读(261)  评论(0编辑  收藏  举报

导航