Szerkesztés

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


Shapes.Item method (PowerPoint)

Returns a single Shape object from the specified Shapes collection.

Syntax

expression.Item (Index)

expression A variable that represents a Shapes object.

Parameters

Name Required/Optional Data type Description
Index Required Variant The name or index number of the single Shape object in the collection to be returned.

Return value

Shape

Example

This example sets the foreground color to red for the shape named "Rectangle 1" on slide one in the active presentation.

ActivePresentation.Slides.Item(1).Shapes.Item("rectangle 1").Fill _
    .ForeColor.RGB = RGB(128, 0, 0)

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.