SlideShowTransition.AdvanceOnTime Property
Determines whether the specified slide advances automatically after a specified amount of time has elapsed. Read/write.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Property AdvanceOnTime As MsoTriState
Get
Set
'Usage
Dim instance As SlideShowTransition
Dim value As MsoTriState
value = instance.AdvanceOnTime
instance.AdvanceOnTime = value
MsoTriState AdvanceOnTime { get; set; }
Property Value
Type: Microsoft.Office.Core.MsoTriState
MsoTriState
Remarks
Use the AdvanceTime property to specify the number of seconds after which the slide automatically advances. Set the AdvanceMode property of the SlideShowSettings object to ppSlideShowUseSlideTimings to put the slide interval settings into effect for the entire slide show.
The value of the AdvanceOnTime property can be one of these MsoTriState constants.
Constant |
Description |
---|---|
msoFalse |
The specified slide does not advance automatically after a specified amount of time has elapsed. |
msoTrue |
The specified slide advances automatically after a specified amount of time has elapsed. |
Examples
This example sets slide one in the active presentation to advance after five seconds have passed or when the mouse is clicked — whichever occurs first.
With ActivePresentation.Slides(1).SlideShowTransition
.AdvanceOnClick = msoTrue
.AdvanceOnTime= msoTrue
.AdvanceTime = 5
End With