Good morning,
I have a form on which I display several charts/graphs. I'd like to put a combo on this form which allows the user to dynamically change the chart type.
How can I enumerate the chart styles to get this chart type information? I have tried the following:
Next
But this does not work, but I need to do something like this. Any and all help is greatly appreciated.
Scott
I think you're looking for Infragistics.UltraChart.Shared.Styles.ChartType not UltraChart.Shared.Styles because that's a namespace.
Hope this helps -Paul
Hi Paul,
Thaks for the reply. I changed it to the following:
But I get the error: "Chart is a type of Styles and cannot be used as an expression."
Sorry I should have been clearer.
Try this little code snippet:
Array chartTypeArray = Enum.GetValues(typeof(Infragistics.UltraChart.Shared.Styles.ChartType)); foreach (Infragistics.UltraChart.Shared.Styles.ChartType type in chartTypeArray) { System.Diagnostics.Debug.WriteLine("type: " + type.ToString()); }
Good luck and let me know how it goes. -Paul
This worked great! Thank you very much.