ShapeRange.PlaceholderFormat プロパティ (PowerPoint)

プレース ホルダーに固有なプロパティを含む PlaceholderFormat オブジェクトを返します。 読み取り専用です。

構文

PlaceholderFormat

ShapeRange オブジェクトを表す変数。

戻り値

PlaceholderFormat

次の使用例は、作業中のプレゼンテーションのスライド 1 のプレースホルダー 1 が横書きのタイトル プレースホルダーである場合、そのプレースホルダーにテキストを追加します。

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

関連項目

ShapeRange オブジェクト

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。