Szerkesztés

Megosztás a következőn keresztül:


Shapes.HasTitle property (PowerPoint)

Returns whether the collection of objects on the specified slide contains a title placeholder. Read-only.

Syntax

expression.HasTitle

expression A variable that represents a Shapes object.

Return value

MsoTriState

Remarks

The value of the HasTitle property can be one of these MsoTriState constants.

Constant Description
msoFalse The collection of objects on the specified slide does not contain a title placeholder.
msoTrue The collection of objects on the specified slide contains a title placeholder.

Example

This example restores the title placeholder to slide one in the active presentation if this placeholder has been deleted. The text of the restored title is "Restored title."

With ActivePresentation.Slides(1)

    If .Layout <> ppLayoutBlank Then
        With .Shapes
            If Not .HasTitle Then
                .AddTitle.TextFrame.TextRange _
                    .Text = "Restored title"
            End If
        End With
    End If

End With

See also

Shapes Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.