Partager via


Presentations.Add Method

Creates a presentation. Returns a Presentation object that represents the new presentation.

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

Syntax

'Declaration
Function Add ( _
    WithWindow As MsoTriState _
) As Presentation
'Usage
Dim instance As Presentations
Dim WithWindow As MsoTriState
Dim returnValue As Presentation

returnValue = instance.Add(WithWindow)
Presentation Add(
    MsoTriState WithWindow
)

Parameters

Return Value

Type: Microsoft.Office.Interop.PowerPoint.Presentation

Remarks

The WithWindow parameter value can be one of these MsoTriState constants.

Constant

Description

msoFalse

The new presentation isn't visible.

msoTrue

The default. Creates the presentation in a visible window.

See Also

Reference

Presentations Interface

Presentations Members

Microsoft.Office.Interop.PowerPoint Namespace