Partager 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

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.

See Also

Reference

_Slide Interface

_Slide Members

Microsoft.Office.Interop.PowerPoint Namespace