Share via


Chart.GapDepth Property (Word)

Returns or sets the distance, as a percentage of the marker width, between the data series in a 3-D chart. Read/write Long.

Version Information

Version Added: Word 2007

Syntax

expression .GapDepth

expression A variable that represents a Chart object.

Remarks

The value of this property must be between 0 and 500.

Note

This property applies only to 3-D charts.

Example

The following example sets the distance between the data series for the first chart in the active document to 200 percent of the marker width. You should run the example on a 3-D chart (the GapDepth property fails on 2-D charts).

With ActiveDocument.InlineShapes(1) 
 If .HasChart Then 
 .Chart.GapDepth = 200 
 End If 
End With

See Also

Concepts

Chart Object

Chart Object Members