Share via


PlaySettings.HideWhileNotPlaying Property

Determines whether the specified media clip is hidden during a slide show except when it is playing. Read/write.

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

Syntax

'Declaration
Property HideWhileNotPlaying As MsoTriState
    Get
    Set
'Usage
Dim instance As PlaySettings
Dim value As MsoTriState

value = instance.HideWhileNotPlaying

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

Property Value

Type: Microsoft.Office.Core.MsoTriState
MsoTriState

Remarks

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

Constant

Description

msoFalse

The specified media clip is not hidden during a slide show except when it is playing.

msoTrue

The specified media clip is hidden during a slide show except when it is playing.

Examples

This example inserts a movie named "Clock.avi" onto slide one in the active presentation, sets it to play automatically after the slide transition, and specifies that the movie object be hidden during a slide show except when it is playing.

With ActivePresentation.Slides(1).Shapes _

        .AddOLEObject(Left:=10, Top:=10, _

        Width:=250, Height:=250, _

        FileName:="c:\winnt\clock.avi")

    With .AnimationSettings.PlaySettings

        .PlayOnEntry = True

        .HideWhileNotPlaying= msoTrue

    End With

End With

See Also

Reference

PlaySettings Interface

PlaySettings Members

Microsoft.Office.Interop.PowerPoint Namespace