共用方式為


PowerPoint) (Shape.PlaceholderFormat 屬性

會傳回 PlaceholderFormat 物件包含對版面配置區都是唯一的屬性。 唯讀。

語法

expressionPlaceholderFormat

表達 代表 Shape 物件的變數。

傳回值

PlaceholderFormat

範例

在這個範例中,如果使用中簡報第一張投影片上的第一個版面配置區是水平標題版面配置區,就會將文字新增至該版面配置區。

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

另請參閱

Shape 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應