NamedSlideShows._Index Method (Int32)
Returns a NamedSlideShows collection that represents all the named slide shows (custom slide shows) in the specified presentation. Read-only.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function _Index ( _
Index As Integer _
) As Object
'Usage
Dim instance As NamedSlideShows
Dim Index As Integer
Dim returnValue As Object
returnValue = instance._Index(Index)
Object _Index(
int Index
)
Parameters
- Index
Type: System.Int32
Return Value
Type: System.Object
NamedSlideShows
Implements
Remarks
Each named slide show, or custom slide show, is a user-selected subset of the specified presentation.
Use the Add(String, Object) method of the NamedSlideShows object to create a named slide show.
Examples
This example adds to the active presentation a named slide show "Quick Show" that contains slides 2, 7, and 9. The example then runs this slide show.
Dim qSlides(1 To 3) As Long
With ActivePresentation
With .Slides
qSlides(1) = .Item(2).SlideID
qSlides(2) = .Item(7).SlideID
qSlides(3) = .Item(9).SlideID
End With
With .SlideShowSettings
.RangeType = ppShowNamedSlideShow
.NamedSlideShows.Add "Quick Show", qSlides
.SlideShowName = "Quick Show"
.Run
End With
End With