Share via


ThreeDFormat.PresetLightingDirection Property

Publisher Developer Reference

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

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

See Also