Share via


PlaceholderFormat オブジェクト

Microsoft PowerPoint Visual Basic リファレンス

PlaceholderFormat オブジェクト

複数のオブジェクト
PlaceholderFormat

プレースホルダの種類などの、プレースホルダだけに設定されるプロパティが含まれます。

使い方

PlaceholderFormat オブジェクトを取得するには、PlaceholderFormat プロパティを使用します。次の使用例は、プレースホルダが存在し、横書きタイトル プレースホルダである場合、作業中のプレゼンテーションのスライド 1 のプレースホルダ 1 にテキストを追加します。

With ActivePresentation.Slides(1).Shapes.Placeholders
    If .Count > 0 Then
        With .Item(1)
            Select Case .PlaceholderFormat.Type
                Case ppPlaceholderTitle
                    .TextFrame.TextRange = "タイトル テキスト"
                Case ppPlaceholderCenterTitle
                    .TextFrame.TextRange = "中央揃えのタイトル テキスト"
                Case Else
                    MsgBox "このスライドには横書きの" _
                        "タイトルはありません。"
            End Select
        End With
    End If
End With