Share via


_Slide.SlideIndex Property

Returns the index number of the specified slide within the Slides collection. Read-only.

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

Syntax

'Declaration
ReadOnly Property SlideIndex As Integer
    Get
'Usage
Dim instance As _Slide
Dim value As Integer

value = instance.SlideIndex
int SlideIndex { get; }

Property Value

Type: System.Int32
Long

Remarks

Unlike the SlideID property, the SlideIndex property of a Slide object can change when you add slides to the presentation or rearrange the slides in the presentation. Therefore, using the FindBySlideID(Int32) method with the slide's ID number can be a more reliable way to return a specific Slide object from a Slides collection than using the Item method with the slide's index number.

Examples

This example displays the index number of the currently displayed slide in slide show window one.

MsgBox SlideShowWindows(1).View.Slide.SlideIndex

See Also

Reference

_Slide Interface

_Slide Members

Microsoft.Office.Interop.PowerPoint Namespace