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
{
}
}