Table of contents
TOC
折叠目录
展开目录

ThreeDFormat.PresetLightingDirection 属性 (PowerPoint)ThreeDFormat.PresetLightingDirection Property (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

返回或设置光源相对于延伸的位置。可读/写。Returns or sets the position of the light source relative to the extrusion. Read/write.

语法Syntax

表达式PresetLightingDirectionexpression. PresetLightingDirection

表达式_一个表示ThreeDFormat对象的变量。_expression A variable that represents a ThreeDFormat object.

返回值Return Value

可读MsoPresetLightingDirection

注解Remarks

PresetLightingDirection属性的值可以是其中一个常量。The value of the PresetLightingDirection property can be one of these MsoPresetLightingDirection constants.

|| |:-----| |msoLightingBottommsoLightingBottom| |msoLightingBottomLeftmsoLightingBottomLeft| |msoLightingBottomRightmsoLightingBottomRight| |msoLightingLeftmsoLightingLeft| |msoLightingNonemsoLightingNone| |msoLightingRightmsoLightingRight| |msoLightingTopmsoLightingTop| |msoLightingTopLeftmsoLightingTopLeft| |msoLightingTopRightmsoLightingTopRight| |msoPresetLightingDirectionMixedmsoPresetLightingDirectionMixed|

示例Example

此示例指定图形 1 的延伸部分myDocument向形状的顶部,扩展和延伸的光源来自左侧。This example specifies that the extrusion for shape one on myDocument extend toward the top of the shape and that the lighting for the extrusion come from the left.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(1).ThreeD

    .Visible = True

    .SetExtrusionDirection msoExtrusionTop

    .PresetLightingDirection = msoLightingLeft

End With

另请参阅See also

概念Concepts

ThreeDFormat 对象ThreeDFormat Object

© 2018 Microsoft