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

Series.Trendlines 方法 (PowerPoint)Series.Trendlines Method (PowerPoint)

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

返回系列的所有趋势线的集合。Returns a collection of all the trendlines for the series.

语法Syntax

表达式趋势线索引expression. Trendlines( Index )

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

返回值Return Value

表示所有 treadlines 系列的趋势线对象。A Trendlines object that represents all the treadlines for the series.

示例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 linear trendline to series one for the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.SeriesCollection(1).Trendlines.Add Type:=xlLinear

    End If

End With

另请参阅See also

概念Concepts

Series 对象Series Object

© 2018 Microsoft