Timing.SmoothStart Property
Determines whether an animation should accelerate when it starts. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property SmoothStart As MsoTriState
Get
Set
'Usage
Dim instance As Timing
Dim value As MsoTriState
value = instance.SmoothStart
instance.SmoothStart = value
MsoTriState SmoothStart { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoTriState
MsoTriState
Remarks
The value of the SmoothStart property can be one of these MsoTriState constants.
Constant |
Description |
---|---|
msoFalse |
The default. The animation does not accelerate when it starts. |
msoTrue |
The animation accelerates when it starts. |
Examples
The following example adds a shape to a slide, animates the shape, and instructs the shape to accelerate when it starts.
Sub AddShapeSetTiming()
Dim effDiamond As Effect
Dim shpRectangle As Shape
Set shpRectangle = ActivePresentation.Slides(1).Shapes _
.AddShape(Type:=msoShapeRectangle, Left:=100, _
Top:=100, Width:=50, Height:=50)
Set effDiamond = ActivePresentation.Slides(1).TimeLine.MainSequence _
.AddEffect(Shape:=shpRectangle, effectId:=msoAnimEffectPathDiamond)
With effDiamond.Timing
.Duration = 5
.SmoothStart= msoTrue
End With
End Sub