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

系列对象 (PowerPoint)Series Object (PowerPoint)

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

代表图表上的系列。Represents a series in a chart.

注解Remarks

Series 对象是 SeriesCollection 集合的成员。The Series object is a member of the SeriesCollection collection.

示例Example

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

使用SeriesCollection索引),其中_索引_是系列的编号或名称,返回单个系列对象。下面的示例设置活动文档中第一个图表的第一个系列的内部颜色。Use SeriesCollection ( Index ), where Index is the series index number or name, to return a single Series object. The following example sets the color of the interior for the first series of the first chart in the active document.

系列索引号指明了系列添加到图表中的顺序。 SeriesCollection(1) 是第一个添加到图表中的系列,而 SeriesCollection(SeriesCollection.Count) 是最后一个添加到图表中的系列。The series index number indicates the order in which the series were added to the chart. SeriesCollection(1) is the first series added to the chart, and SeriesCollection(SeriesCollection.Count) is the last one added.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

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

    End If

End With

方法Methods

名称Name
ApplyDataLabelsApplyDataLabels
ClearFormatsClearFormats
CopyCopy
数据标签DataLabels
DeleteDelete
误差线ErrorBar
PastePaste
PointsPoints
SelectSelect
TrendlinesTrendlines

属性Properties

名称Name
ApplicationApplication
ApplyPictToEndApplyPictToEnd
ApplyPictToFrontApplyPictToFront
ApplyPictToSidesApplyPictToSides
AxisGroupAxisGroup
BarShapeBarShape
BubbleSizesBubbleSizes
图表类型ChartType
CreatorCreator
误差线ErrorBars
ExplosionExplosion
FormatFormat
FormulaFormula
FormulaLocalFormulaLocal
FormulaR1C1FormulaR1C1
FormulaR1C1LocalFormulaR1C1Local
Has3DEffectHas3DEffect
HasDataLabelsHasDataLabels
HasErrorBarsHasErrorBars
HasLeaderLinesHasLeaderLines
InvertColorInvertColor
InvertColorIndexInvertColorIndex
InvertIfNegativeInvertIfNegative
IsFilteredIsFiltered
LeaderLinesLeaderLines
MarkerBackgroundColorMarkerBackgroundColor
MarkerBackgroundColorIndexMarkerBackgroundColorIndex
MarkerForegroundColorMarkerForegroundColor
MarkerForegroundColorIndexMarkerForegroundColorIndex
MarkerSizeMarkerSize
MarkerStyleMarkerStyle
NameName
ParentParent
ParentDataLabelOptionParentDataLabelOption
:-----
图片类型PictureType
PictureUnit2PictureUnit2
PlotColorIndexPlotColorIndex
PlotOrderPlotOrder
QuartileCalculationInclusiveMedianQuartileCalculationInclusiveMedian
ShadowShadow
SmoothSmooth
TypeType
ValuesValues
XValuesXValues

另请参阅See also

其他资源Other resources

PowerPoint 对象模型引用PowerPoint Object Model Reference

© 2018 Microsoft