Поделиться через


SeriesCollection.Add Method

Adds one or more new series to the collection.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.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 PowerPoint 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, PowerPoint 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 is false.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.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.PowerPoint Namespace