Series 对象 (PowerPoint)Series object (PowerPoint)
代表图表上的系列。Represents a series in a chart.
注释Remarks
Series 对象是 SeriesCollection 集合的成员。The Series object is a member of the SeriesCollection collection.
示例Example
备注
尽管下面的代码适用于 Microsoft Word,但您可以轻松地对其进行修改以将其应用于 PowerPoint。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.
系列索引号指明了系列添加到图表中的顺序。The series index number indicates the order in which the series were added to the chart. SeriesCollection(1)
是第一个添加到图表中的系列,而 SeriesCollection(SeriesCollection.Count)
是最后一个添加到图表中的系列。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 |
DataLabelsDataLabels |
删除Delete |
ErrorBarErrorBar |
PastePaste |
PointsPoints |
SelectSelect |
TrendlinesTrendlines |
属性Properties
另请参阅See also
PowerPoint 对象模型引用PowerPoint Object Model Reference
支持和反馈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.