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

Series.HasDataLabels 属性 (PowerPoint)Series.HasDataLabels Property (PowerPoint)

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

如此如果该数据系列的数据标签。读/写boolean 类型的值True if the series has data labels. Read/write Boolean.

语法Syntax

表达式HasDataLabelsexpression. HasDataLabels

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

示例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 enables data labels for series three of the first chart in the active document.

With ActiveDocument.InlineShapes(1)

    If .HasChart Then

        With .Chart.SeriesCollection(3)

            .HasDataLabels = True

            .ApplyDataLabels Type:=xlValue

        End With

    End If

End With

另请参阅See also

概念Concepts

Series 对象Series Object

© 2018 Microsoft