全部显示

Depth 属性

       

应用于 ThreeDFormat 对象的 Depth 属性。

应用于 TickLabels 对象的 TickLabels 属性。

示例

本示例向 myDocument 中添加椭圆,然后指定椭圆的延伸为 50 磅,并指定延伸的颜色为紫色。

Set myDocument = Worksheets(1)
Set myShape = myDocument.Shapes.AddShape(msoShapeOval, _
    90, 90, 90, 40)
With myShape.ThreeD
    .Visible = True
    .Depth = 50
    ' RGB value for purple
    .ExtrusionColor.RGB = RGB(255, 100, 255)
End With