Table of contents
Collapse the table of content
Expand the table of content

ThreeDFormat.PresetLightingDirection Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
3 Contributors

Returns or sets an MsoPresetLightingDirection constant that represents the position of the light source relative to the extrusion. Read/write.


expression. PresetLightingDirection

_expression_A variable that represents a ThreeDFormat object.

Return Value



The PresetLightingDirection property value can be one of the ** MsoPresetLightingDirection** constants declared in the Microsoft Office type library.

The lighting effects you set will not be apparent if the extrusion has a wireframe surface.


This example sets the extrusion for the first shape on the first page of the active publication to extend toward the top of the shape and that the lighting for the extrusion come from the left. For this example to work, the specified shape must be a 3-D shape.

Sub ExtrusionLighting() 
 With ActiveDocument.Pages(1).Shapes(1).ThreeD 
 .Visible = True 
 .SetExtrusionDirection msoExtrusionTop 
 .PresetLightingDirection = msoLightingLeft 
 End With 
End Sub
© 2018 Microsoft