title | ms.service | ms.assetid | ms.date | ms.localizationpriority |
---|---|---|---|---|
Chart.DepthPercent property (Project) |
project-server |
868997e8-225c-5899-ccb0-71e1c8d9acfd |
06/08/2017 |
medium |
Gets or sets the depth of a 3D chart as a percentage of the chart width (between 20 and 2000 percent). Read/write Long.
expression.DepthPercent
expression A variable that represents a Chart object.
The DepthPercent property fails on 2D charts.
The following example sets the depth of the specified chart to be 50 percent of its width. The example should be run on a 3D chart.
Sub SetDepthPercent()
Dim chartShape As Shape
Dim reportName As String
reportName = "Simple 3D chart"
Set chartShape = ActiveProject.Reports(reportName).Shapes(1)
chartShape.Chart.DepthPercent = 50
End Sub
INT
[!includeSupport and feedback]