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

ChartGroups.Item 方法 (PowerPoint)ChartGroups.Item Method (PowerPoint)

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

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

语法Syntax

表达式项目索引expression. Item( Index )

表达式_一个表示ChartGroups对象的变量。_expression A variable that represents a ChartGroups object.

参数Parameters

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

返回值Return Value

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

示例Example

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

以下示例向活动文档中第一个图表的第一个图表组添加垂直线。The following example adds drop lines to chart group one for the first chart group of the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        .Chart.ChartGroups.Item(1).HasDropLines = True

    End If

End With

另请参阅See also

概念Concepts

ChartGroups 对象ChartGroups Object

© 2018 Microsoft