User (Legacy) Posted August 30, 2005 Report Share Posted August 30, 2005 How do you remove a pane by code (c#)? Regards Link to comment Share on other sites More sharing options...
Software FX Posted August 30, 2005 Report Share Posted August 30, 2005 chart1.Panes.RemoveAt(paneIndex); You must make sure all series associated with this pane are moved to another before removing it. A pane can be made invisible along with all series contained in it by doing: pane.Proportion = 0; -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted September 9, 2005 Author Report Share Posted September 9, 2005 When I use this RemoveAt the panes do not get removed. I know have: int i=1; int max=grafiek.Series.Count; while(i<= max) { grafiek.Series.RemoveAt(0); i++; } i=1; max=grafiek.Panes.Count; while(i<= max) { grafiek.Panes.RemoveAt; i++; } I expected that all series and allpanes would be removed by this. The code runs through the software, but the panes and series remain in the chart. "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:f%23Ja8HXrFHA.1992@webserver3.softwarefx.com... > chart1.Panes.RemoveAt(paneIndex); > > You must make sure all series associated with this pane are moved to > another before removing it. > > > A pane can be made invisible along with all series contained in it by > doing: > > pane.Proportion = 0; > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted September 14, 2005 Report Share Posted September 14, 2005 It is not that simple, there are Axes associated with these panes that remain in place, there are series associated with these axes, etc. chart.Series is a collection of series attributes, not series itself, removing a series from this collection will not make then go away, they will simply end up with default attributes. What exactly do you want to achieve with this code ? What do you want to appear in the chart after this code runs ? Take a look at ClearData, it may be what you are looking for. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.