ThreeDFormat.PresetLightingDirection property (Publisher)

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

Syntax

expression.PresetLightingDirection

expression A variable that represents a ThreeDFormat object.

Return value

MsoPresetLightingDirection

Remarks

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

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

Example

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 3D shape.

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

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.