Share via


SlideShowTransition.AdvanceOnClick Property

Determines whether the specified slide advances when it is clicked during a slide show. Read/write.

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

Syntax

'Declaration
Property AdvanceOnClick As MsoTriState
    Get
    Set
'Usage
Dim instance As SlideShowTransition
Dim value As MsoTriState

value = instance.AdvanceOnClick

instance.AdvanceOnClick = value
MsoTriState AdvanceOnClick { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState
MsoTriState

Remarks

To set the slide to advance automatically after a certain amount of time elapses, set the AdvanceOnTime property to True and set the AdvanceTime property to the amount of time you want the slide to be shown. If you set both the AdvanceOnClick and the AdvanceOnTime properties to True, the slide advances either when it is clicked or when the specified amount of time has elapsed — whichever comes first.

The value of the AdvanceOnClick property can be one of these MsoTriState constants.

Constant

Description

msoFalse

The specified slide does not advance when it is clicked during a slide show.

msoTrue

The specified slide advances when it is clicked during a slide show.

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

See Also

Reference

SlideShowTransition Interface

SlideShowTransition Members

Microsoft.Office.Interop.PowerPoint Namespace