Group: Forum Members
Last Active: 12 Years Ago
Posts: 52,
Visits: 1
|
When should I use ReCalcLayout and Refresh? I am trying to hide the axes, title and legend on an NChartControl when the size is reduced beyond a certain size. This all appears to be working without using either option, so I am interested to know when they need to be used. Thanks Kevin
|
Group: Forum Members
Last Active: Last Week
Posts: 3,054,
Visits: 4,009
|
Hi Kevin, When you resize the control it automatically recalc the layout and invalidate. In general we've opted for the .Refresh() method because that way you can make multiple changes to the chart document (add data, modify settings etc), without generating unecessary control invalidates - you can switch the control in autorefresh mode: nChartControl1.AutoRefresh = true;
and then you'll not have to worry about refresh calls.
Best Regards, Nevron Support Team
|