Trendlines 方法

       

返回代表单个趋势线或系列中所有趋势线集合的某个对象。

expression.Trendlines(Index)

expression   必需。该表达式返回“应用于”列表中的对象之一。

Index   Variant 类型,可选。趋势线的名称或编号。

示例

本示例向第一个数据系列添加线性趋势线。

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