Shape.ThreeD 属性 (PowerPoint)

返回一个 ThreeDFormat 对象,该对象包含指定形状的 3D 效果格式属性。 此为只读属性。

语法

表达式ThreeD

表达 一个代表 Shape 对象的变量。

返回值

ThreeDFormat

示例

本示例设置应用于 myDocument 上第一个形状的 3D 效果的深度、延伸颜色、延伸方向和照明方向。

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(1).ThreeD

    .Visible = True

    .Depth = 50

    'RGB value for purple

    .ExtrusionColor.RGB = RGB(255, 100, 255)

    .SetExtrusionDirection msoExtrusionTop

    .PresetLightingDirection = msoLightingLeft

End With

另请参阅

形状对象

支持和反馈

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