Publisher) (Shape.ThreeD 属性

返回 ThreeDFormat 对象。

语法

表达式。ThreeD

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

备注

使用 ThreeD 属性返回 ThreeDFormat 对象,其属性用于设置指定形状的 3D 外观的格式。

示例

此示例设置应用于活动出版物中形状 1 的 3D 效果的深度、拉伸颜色、拉伸方向和照明方向。

Dim tdfTemp As ThreeDFormat 
 
Set tdfTemp = _ 
 ActiveDocument.Pages(1).Shapes(1).ThreeD 
 
With tdfTemp 
 .Visible = True 
 .Depth = 50 
 .ExtrusionColor.RGB = RGB(255, 100, 255) 
 .SetExtrusionDirection _ 
 PresetExtrusionDirection:=msoExtrusionTop 
 .PresetLightingDirection = msoLightingLeft 
End With 

支持和反馈

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