RemoveAt

ChartSeriesGroupCollection.RemoveAt method

Belirtilen dizindeki bir seri grubunu kaldırır. Tüm alt seriler grafikten kaldırılır.

public void RemoveAt(int index)

Örnekler

İkincil eksenin nasıl kaldırılacağını göster.

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;

// İkincil ekseni bul ve koleksiyondan kaldır.
for (int i = 0; i < seriesGroups.Count; i++)
    if (seriesGroups[i].AxisGroup == AxisGroup.Secondary)
        seriesGroups.RemoveAt(i);

Ayrıca bakınız