PowerPoint) (系列对象

代表图表上的系列。

注释

Series 对象是 SeriesCollection 集合的成员。

示例

注意

[!注释] 尽管以下代码适用于 Microsoft Word,但您也可以对其进行修改以应用于 PowerPoint。

使用 SeriesCollection (索引) (其中 index 是系列索引号或名称)可返回单个 Series 对象。 下面的示例设置活动文档中第一个图表的第一个系列的内部颜色。

系列索引号指明了系列添加到图表中的顺序。 SeriesCollection(1) 是第一个添加到图表中的系列,而 SeriesCollection(SeriesCollection.Count) 是最后一个添加到图表中的系列。

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.SeriesCollection(1).Interior.Color = RGB(255, 0, 0)

    End If

End With

方法

名称
ApplyDataLabels
ClearFormats
Copy
DataLabels
删除
ErrorBar
Paste
Points
Select
Trendlines

属性

名称
Application
ApplyPictToEnd
ApplyPictToFront
ApplyPictToSides
AxisGroup
BarShape
BubbleSizes
ChartType
Creator
ErrorBars
Explosion
Format
Formula
FormulaLocal
FormulaR1C1
FormulaR1C1Local
Has3DEffect
HasDataLabels
HasErrorBars
HasLeaderLines
InvertColor
InvertColorIndex
InvertIfNegative
IsFiltered
LeaderLines
MarkerBackgroundColor
MarkerBackgroundColorIndex
MarkerForegroundColor
MarkerForegroundColorIndex
MarkerSize
MarkerStyle
名称
Parent
ParentDataLabelOption
PictureType
PictureUnit2
PlotColorIndex
PlotOrder
QuartileCalculationInclusiveMedian
Shadow
Smooth
类型
XValues

另请参阅

PowerPoint 对象模型引用

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。