返回 ColorFormat 对象,该对象代表图形深度部分的颜色。只读。
本示例向 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