Share via


AnimationSettings.ChartUnitEffect Property

Returns or sets a value that indicates whether the graph range is animated by series, category, or element. Read/write.

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

Syntax

'Declaration
Property ChartUnitEffect As PpChartUnitEffect
    Get
    Set
'Usage
Dim instance As AnimationSettings
Dim value As PpChartUnitEffect

value = instance.ChartUnitEffect

instance.ChartUnitEffect = value
PpChartUnitEffect ChartUnitEffect { get; set; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.PpChartUnitEffect
PpChartUnitEffect

Remarks

If your graph doesn't become animated, make sure that the AnimateAction property is set to True

The value of the ChartUnitEffect property can be one of these PpChartUnitEffect constants.

ppAnimateByCategory

ppAnimateByCategoryElements

ppAnimateBySeries

ppAnimateBySeriesElements

ppAnimateChartAllAtOnce

ppAnimateChartMixed

Examples

This example sets shape two on slide three in the active presentation to be animated by series. Shape two must be a graph for this to work.

With ActivePresentation.Slides(3).Shapes(2)

    With .AnimationSettings

        .ChartUnitEffect= ppAnimateBySeries

        .EntryEffect = ppEffectFlyFromLeft

        .Animate = True

    End With

End With

See Also

Reference

AnimationSettings Interface

AnimationSettings Members

Microsoft.Office.Interop.PowerPoint Namespace