Share via


Placeholders._Index Method (Int32)

Returns a Placeholders collection that represents the collection of all the placeholders on a slide. 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 Placeholders
Dim Index As Integer
Dim returnValue As Object

returnValue = instance._Index(Index)
Object _Index(
    int Index
)

Parameters

Return Value

Type: System.Object
Placeholders

Implements

Collection._Index(Int32)

Remarks

Each placeholder in the Placeholders collection can contain text, a chart, a table, an organizational chart, or another object.

Examples

This example adds a slide to the active presentation and then adds text to both the title (which is the first placeholder on the slide) and the subtitle.

Set myDocument = ActivePresentation.Slides(1)

With ActivePresentation.Slides _

        .Add(1, ppLayoutTitle).Shapes.Placeholders.Item(1).TextFrame.TextRange.Text = "This is the title text"

    .Item(2).TextFrame.TextRange.Text = "This is subtitle text"

End With

See Also

Reference

Placeholders Interface

Placeholders Members

_Index Overload

Microsoft.Office.Interop.PowerPoint Namespace