Propiedad Shape.PlaceholderFormat (PowerPoint)

Devuelve un objeto PlaceholderFormat que contiene las propiedades que son exclusivas de los marcadores de posición. Solo lectura.

Sintaxis

expresión. PlaceholderFormat

Expresión Variable que representa un objeto Shape .

Valor devuelto

PlaceholderFormat

Ejemplo:

En este ejemplo se agrega el texto al marcador de posición uno de la diapositiva uno de la presentación activa si se trata de un marcador de posición de título horizontal.

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

Consulte también

Objeto Shape

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.