Table of contents
TOC
折叠目录
展开目录

SeriesCollection.NewSeries 方法 (PowerPoint)SeriesCollection.NewSeries Method (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

创建新系列。Creates a new series.

语法Syntax

表达式NewSeriesexpression. NewSeries

表达式_一个表示SeriesCollection对象的变量。_expression A variable that represents a SeriesCollection object.

返回值Return Value

一个代表新数据系列的 Series 对象。A Series object that represents the new series.

注解Remarks

此方法对数据透视图无效。This method is not available for PivotChart charts.

示例Example

请注意 尽管下面的代码适用于 Microsoft Word 中,您可以随时修改将其应用到 PowerPoint。Note Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.

以下示例向活动文档中的第一个图表添加一个新系列。The following example adds a new series to the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        Set ns = .Chart.SeriesCollection.NewSeries

    End If

End With

另请参阅See also

其他资源Concepts

SeriesCollection 对象SeriesCollection Object

© 2018 Microsoft