Share via


ThreeDFormat.PresetLightingDirection Property

Returns or sets the position of the light source relative to the extrusion. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property PresetLightingDirection As MsoPresetLightingDirection
    Get
    Set
'Usage
Dim instance As ThreeDFormat
Dim value As MsoPresetLightingDirection

value = instance.PresetLightingDirection

instance.PresetLightingDirection = value
MsoPresetLightingDirection PresetLightingDirection { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoPresetLightingDirection
MsoPresetLightingDirection

Remarks

The value of the PresetLightingDirection property can be one of these MsoPresetLightingDirection constants.

msoLightingBottom

msoLightingBottomLeft

msoLightingBottomRight

msoLightingLeft

msoLightingNone

msoLightingRight

msoLightingTop

msoLightingTopLeft

msoLightingTopRight

msoPresetLightingDirectionMixed

Examples

This example specifies that the extrusion for shape one on myDocument extend toward the top of the shape and that the lighting for the extrusion come from the left.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(1).ThreeD

    .Visible = True

    .SetExtrusionDirection msoExtrusionTop

    .PresetLightingDirection= msoLightingLeft

End With

See Also

Reference

ThreeDFormat Interface

ThreeDFormat Members

Microsoft.Office.Interop.PowerPoint Namespace