M
Mark
Is there a programatic way to iterate through all the named colors?
Something like:
HtmlTable ht = new HtmlTable();
HtmlTableRow htr;
HtmlTableCell htc;
foreach (Color c in [collection of all colors]) //I CAN'T FIND COLLECTION OF
ALL COLORS
{
htr = new HtmlTableRow();
htc = new HtmlTableCell();
htc.InnerText = c.Name;
htr.Cells.Add(htc);
ht.Rows.Add(htr);
}
phColors.Controls.Add(ht); //Display table in a placeholder control
Thanks in advance!
Mark
Something like:
HtmlTable ht = new HtmlTable();
HtmlTableRow htr;
HtmlTableCell htc;
foreach (Color c in [collection of all colors]) //I CAN'T FIND COLLECTION OF
ALL COLORS
{
htr = new HtmlTableRow();
htc = new HtmlTableCell();
htc.InnerText = c.Name;
htr.Cells.Add(htc);
ht.Rows.Add(htr);
}
phColors.Controls.Add(ht); //Display table in a placeholder control
Thanks in advance!
Mark