SeriesCollection 方法(Word)SeriesCollection.Item method (Word)

从集合中返回一个对象。Returns a single object from a collection.


表达式ItemIndexexpression.Item (Index)

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


名称Name 必需/可选Required/Optional 数据类型Data type 说明Description
IndexIndex 必需Required VariantVariant 对象的名称或索引号。The name or index number for the object.

返回值Return value

包含在集合中的一个 Series 对象。A Series object contained by the collection.


以下示例设置活动文档中第一个图表上的趋势线向前和向后延伸的单位数。The following example sets the number of units that the trendline on the first chart in the active document extends forward and backward. 本示例应在包含单个带趋势线的系列的二维柱形图上运行。The example should be run on a 2D column chart that contains a single series with a trendline.

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 With .Chart.SeriesCollection.Item(1).Trendlines.Item(1) 
 .Forward = 5 
 .Backward = .5 
 End With 
 End If 
End With 

另请参阅See also

SeriesCollection 对象SeriesCollection Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.