Adding custom label doesn't initialize properly
Posted: Thu Oct 05, 2006 4:36 am
When you do the following,
AxisLabelItem myLabel = new AxisLabelItem();
myLabel.Color = (blah, blah, blah ....)
...
Chart.Axes.Bottom.Labels.Items.Add(myLabel);
you get an exception on the paint event.
The internal iAxisLabelsItems is not being set during this type of Add.
AxisLabelItem myLabel = new AxisLabelItem();
myLabel.Color = (blah, blah, blah ....)
...
Chart.Axes.Bottom.Labels.Items.Add(myLabel);
you get an exception on the paint event.
The internal iAxisLabelsItems is not being set during this type of Add.