Axis.HasDisplayUnitLabel 属性 (PowerPoint)
如此 如果 DisplayUnit 或 DisplayUnitCustom 属性中指定的标签显示指定坐标轴上。 默认值为 True 。 读/写 Boolean。
语法
表达式。HasDisplayUnitLabel
表达 一个代表“Axis”对象的变量。
示例
尽管下面的代码适用于 Microsoft Word,但您可以轻松地对其进行修改以将其应用于 PowerPoint。
以下示例将活动文档中第一个图表的数值轴单位设置为以 500 为增量,但隐藏单位标签。
With ActiveDocument.InlineShapes(1)
If .HasChart Then
With .Chart.Axes(xlValue)
.DisplayUnit = xlCustom
.DisplayUnitCustom = 500
.AxisTitle.Caption = "Rebate Amounts"
.HasDisplayUnitLabel = False
End With
End If
End With
另请参阅
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。