RemoveAt
ChartSeriesGroupCollection.RemoveAt method
Removes a series group at the specified index. All child series will be removed from the chart.
public void RemoveAt(int index)
Examples
Show how to remove secondary axis.
Document doc = new Document(MyDir + "Combo chart.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
Chart chart = shape.Chart;
ChartSeriesGroupCollection seriesGroups = chart.SeriesGroups;
// Find secondary axis and remove from the collection.
for (int i = 0; i < seriesGroups.Count; i++)
if (seriesGroups[i].AxisGroup == AxisGroup.Secondary)
seriesGroups.RemoveAt(i);
See Also
- class ChartSeriesGroupCollection
- namespace Aspose.Words.Drawing.Charts
- assembly Aspose.Words