Modifica

Condividi tramite


SeriesCollection.Add(Object, XlRowCol, Object, Object, Object) Method

Definition

Adds one or more new series to the SeriesCollection collection.

public Microsoft.Office.Interop.Excel.Series Add (object Source, Microsoft.Office.Interop.Excel.XlRowCol Rowcol = (Microsoft.Office.Interop.Excel.XlRowCol) -4105, object SeriesLabels, object CategoryLabels, object Replace);
Public Function Add (Source As Object, Optional Rowcol As XlRowCol = (Microsoft.Office.Interop.Excel.XlRowCol) -4105, Optional SeriesLabels As Object, Optional CategoryLabels As Object, Optional Replace As Object) As Series

Parameters

Source
Object

Required Object. The new data, either as a Range object or an array of data points.

Rowcol
XlRowCol

Optional XlRowCol. Specifies whether the new values are in the rows or columns of the specified range.

SeriesLabels
Object

Optional Object. Ignored if Source is an array. True if the first row or column contains the name of the data series. False if the first row or column contains the first data point of the series. If this argument is omitted, Microsoft Excel attempts to determine the location of the series name from the contents of the first row or column.

CategoryLabels
Object

Optional Object. Ignored if Source is an array. True if the first row or column contains the name of the category labels. False if the first row or column contains the first data point of the series. If this argument is omitted, Microsoft Excel attempts to determine the location of the category label from the contents of the first row or column.

Replace
Object

Optional Object. If CategoryLabels is True and Replace is True, the specified categories replace the categories that currently exist for the series. If Replace is False, the existing categories will not be replaced. The default value is False.

Returns

Remarks

This method is not available for PivotChart reports.

Applies to