How to loop through the ChartColorPalette properties and add to list?

Posted by John M on Stack Overflow See other posts from Stack Overflow or by John M
Published on 2010-05-31T19:25:47Z Indexed on 2010/05/31 19:33 UTC
Read the original article Hit count: 184

I am using the Microsoft Chart Controls for .NET 3.5 (C#) and have a chart in a winform.

My hope is to allow the user to change the color palette based on their preference.

How do I iterate through the color properties of the ChartColorPalette and add them to a combobox list?

I know it should be something like:

for each(something in ChartColorPalette)
{
  combobox.items.add(something.ToString);
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about winforms