ThreeDFormat.PresetLightingSoftness property (Publisher)

Returns or sets an MsoPresetLightingSoftness constant that represents the intensity of the extrusion lighting. Read/write.

Syntax

expression.PresetLightingSoftness

expression A variable that represents a ThreeDFormat object.

Return value

MsoPresetLightingSoftness

Remarks

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

Example

This example sets the extrusion for the first shape on the first page of the active publication to be lit brightly from the left. For this example to work, the specified shape must be a 3D shape.

Sub SetExtrusionLightingBrightness() 
 With ActiveDocument.Pages(1).Shapes(1).ThreeD 
 .Visible = True 
 .PresetLightingSoftness = msoLightingBright 
 .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.