RemoveAt
ChartSeriesGroupCollection.RemoveAt method
Удаляет группу серий по указанному индексу. Все дочерние серии будут удалены из диаграммы.
public void RemoveAt(int index)
Примеры
Покажите, как удалить вторичную ось.
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;
// Найти вторичную ось и удалить из коллекции.
for (int i = 0; i < seriesGroups.Count; i++)
if (seriesGroups[i].AxisGroup == AxisGroup.Secondary)
seriesGroups.RemoveAt(i);
Смотрите также
- class ChartSeriesGroupCollection
- пространство имен Aspose.Words.Drawing.Charts
- сборка Aspose.Words