Chart.GapDepth 属性 (Project)

获取或设置 3D 图表中数据系列之间的距离,以标记宽度的百分比表示。 读/写 Long

语法

表达式GapDepth

expression:一个表示 Chart 对象的变量。

备注

GapDepth 属性的值必须介于 0 和 500 之间。 GapDepth 属性在 2D 图表上失败。

示例

以下示例将图表中数据系列之间的距离设置为标记宽度的 200%。 本示例应在 3D 图表上运行。

Sub SetGapDepth()
    Dim chartShape As Shape
    Dim reportName As String
    
    reportName = "Simple 3D chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
    
    chartShape.Chart.GapDepth = 200
End Sub

属性值

INT

另请参阅

Chart 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。