AndyC1000
asked on
System.Drawing.Color add all to list (C#)
Hello,
Need to store colors in a list for a radar chart. The number of series are unknown, want to loop through the colors list to assign a color to each series plotted.
Can't find how to get all colors of System.Drawing.Color to add it to a list.
List<string> colors = System.Drawing.Color<?>
AC.
Need to store colors in a list for a radar chart. The number of series are unknown, want to loop through the colors list to assign a color to each series plotted.
Can't find how to get all colors of System.Drawing.Color to add it to a list.
List<string> colors = System.Drawing.Color<?>
AC.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
[code]
for(int i = 0; i < list.Count; i++){ // contains the number of series.
string str = "series" + i;
for(int j = 0; j < colours.Count; j++){
System.Windows.Forms.DataV
series.Color = // colours[i];??
}
}
[/code]
There's also a problem with syntax in these two lines, conflicting local variables.
string str = "series" + i;
System.Windows.Forms.DataV