Share via


ThreeDFormat.PresetLightingSoftness Property

Publisher Developer Reference

Returns or sets a 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 3-D shape.

Visual Basic for Applications
  Sub SetExtrusionLightingBrighness()
    With ActiveDocument.Pages(1).Shapes(1).ThreeD
        .Visible = True
        .PresetLightingSoftness = msoLightingBright
        .PresetLightingDirection = msoLightingLeft
    End With
End Sub

See Also