Partager via


DocumentWindow.Presentation Property

Returns a Presentation object that represents the presentation in which the specified document window or slide show window was created. Read-only.

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

Syntax

'Declaration
ReadOnly Property Presentation As Presentation
    Get
'Usage
Dim instance As DocumentWindow
Dim value As Presentation

value = instance.Presentation
Presentation Presentation { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.Presentation

Remarks

If the slide that's currently displayed in document window one is from an embedded presentation, Windows(1).View.Slide.Parent returns the embedded presentation, and Windows(1).Presentation returns the presentation in which document window one was created.

If the slide that's currently displayed in slide show window one is from an embedded presentation, SlideShowWindows(1).View.Slide.Parent returns the embedded presentation, and SlideShowWindows(1).Presentation returns the presentation in which the slide show was started.

See Also

Reference

DocumentWindow Interface

DocumentWindow Members

Microsoft.Office.Interop.PowerPoint Namespace