Share via


SeriesCollection.Add Method

Adds one or more new series to the collection.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
Function Add ( _
    Source As Object, _
    Rowcol As XlRowCol, _
    SeriesLabels As Object, _
    CategoryLabels As Object, _
    Replace As Object _
) As Series
'Usage
Dim instance As SeriesCollection
Dim Source As Object
Dim Rowcol As XlRowCol
Dim SeriesLabels As Object
Dim CategoryLabels As Object
Dim Replace As Object
Dim returnValue As Series

returnValue = instance.Add(Source, Rowcol, _
    SeriesLabels, CategoryLabels, Replace)
Series Add(
    Object Source,
    XlRowCol Rowcol,
    Object SeriesLabels,
    Object CategoryLabels,
    Object Replace
)

Parameters

  • Source
    Type: System.Object
    The new data as a string representation of a range contained in the Workbook property of the ChartData object for the chart.
  • SeriesLabels
    Type: System.Object
    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 Word attempts to determine the location of the series name from the contents of the first row or column.
  • CategoryLabels
    Type: System.Object
    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 Word attempts to determine the location of the category label from the contents of the first row or column.
  • Replace
    Type: System.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.

Return Value

Type: Microsoft.Office.Interop.Word.Series
A SeriesCollection object that represents the new series.

Remarks

This method does not actually return a Series object as stated in the Object Browser.

See Also

Reference

SeriesCollection Interface

SeriesCollection Members

Microsoft.Office.Interop.Word Namespace