Export (0) Print
Expand All
D
Expand Minimize

DirectionalLightRotation Property

Office 2003

Returns or sets a Double specifying the rotation of the directional light source for a three-dimensional chart. Valid settings are between 0 and 360. Read/write.

expression.DirectionalLightRotation

expression    Required. An expression that returns a ChChart object.

Remarks

The directional light source rotates around the y-axis of the chart.

Example

This example converts the first chart in Chartspace1 to a 3-D Bar chart and sets the lighting options for the chart.

Sub Format3DLightSources()

    Dim cht3DBar

    ' Set a variable to the first chart in Chartspace1.
    Set cht3DBar = ChartSpace1.Charts(0)

    ' Change the chart to a 3D Bar chart.
    cht3DBar.Type = chChartTypeBar3D

    ' Set the intensity of the ambient light.
    cht3DBar.AmbientLightIntensity = 0.7

    ' Set the inclination of the directional light source.
    cht3DBar.DirectionalLightInclination = 35

    ' Set the intensity of the directional light source.
    cht3DBar.DirectionalLightIntensity = 0.8

    ' Set the rotation of the directional light source.
    cht3DBar.DirectionalLightRotation = 120

End Sub

		


Applies to | ChChart Object



Show:
© 2015 Microsoft