NamedSlideShows.Add Method
Creates a new named slide show and adds it to the collection of named slide shows in the specified presentation. Returns a NamedSlideShow object that represents the new named slide show.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function Add ( _
Name As String, _
safeArrayOfSlideIDs As Object _
) As NamedSlideShow
'Usage
Dim instance As NamedSlideShows
Dim Name As String
Dim safeArrayOfSlideIDs As Object
Dim returnValue As NamedSlideShow
returnValue = instance.Add(Name, safeArrayOfSlideIDs)
NamedSlideShow Add(
string Name,
Object safeArrayOfSlideIDs
)
Parameters
- Name
Type: System.String
The name of the slide show.
- safeArrayOfSlideIDs
Type: System.Object
Contains the unique slide IDs of the slides to be displayed in a slide show.
Return Value
Type: Microsoft.Office.Interop.PowerPoint.NamedSlideShow
Remarks
The name that you specify when you add a named slide show is the name that you use as an argument to the Run(String, []) method to run the named slide show.