Поделиться через


Slides.Range Method

Returns a SlideRange object that represents a subset of the slides in a Slides collection.

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

Syntax

'Declaration
Function Range ( _
    Index As Object _
) As SlideRange
'Usage
Dim instance As Slides
Dim Index As Object
Dim returnValue As SlideRange

returnValue = instance.Range(Index)
SlideRange Range(
    Object Index
)

Parameters

  • Index
    Type: System.Object
    The individual slides that are to be included in the range. Can be an integer that specifies the index number of the slide, a string that specifies the name of the slide, or an array that contains either integers or strings. If this argument is omitted, the Range method returns all the objects in the specified collection.

Return Value

Type: Microsoft.Office.Interop.PowerPoint.SlideRange

Remarks

Although you can use the Range method to return any number of shapes or slides, it is simpler to use the Item method if you only want to return a single member of the collection. For example, Shapes(1) is simpler than Shapes.Range(1), and Slides(2) is simpler than Slides.Range(2).

See Also

Reference

Slides Interface

Slides Members

Microsoft.Office.Interop.PowerPoint Namespace