ThreeDFormat 对象

         
Shapes (Shape)
ThreeDFormat
ColorFormat

代表形状的三维格式。

ThreeDFormat 对象用法

可用 ThreeD 属性返回 ThreeDFormat 对象。下面的示例向 myDocument 中添加椭圆,然后使该椭圆深度 50 磅高,并指定深度部分的颜色为紫色。

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

说明

不能对某些类型的形状应用三维格式,如倾斜的形状或多重分段的路径。对于这些类型的形状,ThreeDFormat 对象的绝大多数属性和方法都将无效。