J
Jason soby
Hi, i need to loop through a group of colors and right now, i have them set
up in an array by name, but that doesnt allow for much flexibility..
I'm writing a report using DevExpress XtraReports and i'm looping through
all the GroupHeader bands and assigning a color based on the level. Level 0
(the closest to the detail band) gets WhiteSmoke, the next one up gets
Gainsboro, the next one up gets Light Gray, but right now, i have an array
Color[] bandColors = { Color.WhiteSmoke, Color.Gainsboro, Color.LightGray };
But if there are more than three grouping bands, this will be a problem. So,
is it possible to loop through colors using math to get from WhiteSmoke >
Gainsboro > LightGray
up in an array by name, but that doesnt allow for much flexibility..
I'm writing a report using DevExpress XtraReports and i'm looping through
all the GroupHeader bands and assigning a color based on the level. Level 0
(the closest to the detail band) gets WhiteSmoke, the next one up gets
Gainsboro, the next one up gets Light Gray, but right now, i have an array
Color[] bandColors = { Color.WhiteSmoke, Color.Gainsboro, Color.LightGray };
But if there are more than three grouping bands, this will be a problem. So,
is it possible to loop through colors using math to get from WhiteSmoke >
Gainsboro > LightGray