Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 1.05 KB

Project.chart.depthpercent.md

File metadata and controls

53 lines (30 loc) · 1.05 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Chart.DepthPercent property (Project)
project-server
868997e8-225c-5899-ccb0-71e1c8d9acfd
06/08/2017
medium

Chart.DepthPercent property (Project)

Gets or sets the depth of a 3D chart as a percentage of the chart width (between 20 and 2000 percent). Read/write Long.

Syntax

expression.DepthPercent

expression A variable that represents a Chart object.

Remarks

The DepthPercent property fails on 2D charts.

Example

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

Property value

INT

See also

Chart Object

[!includeSupport and feedback]