Share via


ShapeRange.PlaceholderFormat Property

Returns a PlaceholderFormat object that contains the properties that are unique to placeholders. Read-only.

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

Syntax

'Declaration
ReadOnly Property PlaceholderFormat As PlaceholderFormat
    Get
'Usage
Dim instance As ShapeRange
Dim value As PlaceholderFormat

value = instance.PlaceholderFormat
PlaceholderFormat PlaceholderFormat { get; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.PlaceholderFormat
PlaceholderFormat

Examples

This example adds text to placeholder one on slide one in the active presentation if that placeholder is a horizontal title placeholder.

With ActivePresentation.Slides(1).Shapes.Placeholders

    If .Count > 0 Then

        With .Item(1)

            Select Case .PlaceholderFormat.Type

                Case ppPlaceholderTitle

                    .TextFrame.TextRange = "Title Text"

                Case ppPlaceholderCenterTitle

                    .TextFrame.TextRange = "Centered Title Text"

                Case Else

                    MsgBox "There's no horizontal" & _

                        "title on this slide"

            End Select

        End With

    End If

End With

See Also

Reference

ShapeRange Interface

ShapeRange Members

Microsoft.Office.Interop.PowerPoint Namespace