Chart.Perspective 属性 (Project)

获取或设置一个值,该值代表 3D 图表视图的透视。 读/写 Long

语法

表达式视角

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

备注

Perspective 属性的值必须介于 0 和 100 之间。 如果 RightAngleAxes 属性为 True,则忽略 Perspective

示例

以下示例将图表的透视设置为 20。 本示例应在 3D 图表上运行。

Sub SetPerspective()
    Dim chartShape As Shape
    Dim reportName As String
    
    reportName = "Simple 3D chart"
    Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
    
    chartShape.Chart.RightAngleAxes = False
    chartShape.Chart.Perspective = 20
End Sub

属性值

INT

另请参阅

Chart 对象

支持和反馈

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