Excel) (ThreeDFormat.PresetLightingDirection 属性

返回或设置光源相对于延伸的位置。 读取/写入 MsoPresetLightingDirection。

语法

表达式。PresetLightingDirection

表达式 表示 ThreeDFormat 对象的变量。

备注

如果拉伸具有线框曲面,则不会看到设置的照明效果。

示例

此示例指定 myDocument 上形状 1 的拉伸向形状顶部延伸,并且拉伸的照明来自左侧。

Set myDocument = Worksheets(1) 
With myDocument.Shapes(1).ThreeD 
 .Visible = True 
 .SetExtrusionDirection msoExtrusionTop 
 .PresetLightingDirection = msoLightingLeft 
End With

支持和反馈

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