ThreeDFormat 对象 (PowerPoint)

代表形状的三维格式。

备注

不能应用三维格式对某些类型的形状,如倾斜的形状或多个不连续的路径。 属性中的大多数,这种形状的 ThreeDFormat 对象的方法将会失败。

示例

使用 ThreeD 属性返回一个 ThreeDFormat 对象。 下例向 myDocument 中添加一个椭圆,然后指定该椭圆被挤压 50 磅的深度且延伸为紫色。

Set myDocument = ActivePresentation.Slides(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

另请参阅

PowerPoint 对象模型引用

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。