SeriesCollection.SetSeriesNames

SeriesCollection.SetSeriesNames method

Sets the name of all the serieses in the chart.

public void SetSeriesNames(int startIndex, string area, bool isVertical)
ParameterTypeDescription
startIndexInt32The index of the first series which you want to set the name.
areaStringSpecifies the area for the series name.
isVerticalBoolean>Specifies whether to plot the series from a range of cell values by row or by column.

Remarks

If the start index is larger than the count of the serieses, it will return and do nothing.If set data on contiguous cells, use colon to seperate them.For example, $C$2:$C$5.If set data on contiguous cells, use comma to seperate them.For example, ($C$2,$D$5).

See Also