ChartGroup.GapWidth property (PowerPoint)
For bar and column charts, returns or sets the space, as a percentage of the bar or column width, between bar or column clusters. For pie-of-pie and bar-of-pie charts, returns or sets the space between the primary and secondary sections of the chart. Read/write Long.
expression.GapWidth
expression A variable that represents a ChartGroup object.
The value of this property must be between 0 and 500.
Примітка
Although the following code applies to Microsoft Word, you can readily modify it to apply to PowerPoint.
The following example sets the space between column clusters for the first chart in the active document to be 50 percent of the column width.
With ActiveDocument.InlineShapes(1)
If .HasChart Then
.Chart.ChartGroups(1).GapWidth = 50
End If
End With
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.