Table of contents
TOC
折叠目录
展开目录

Shape.Delete 方法 (PowerPoint)Shape.Delete Method (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

删除指定的Shape对象。Deletes the specified Shape object.

语法Syntax

表达式删除expression. Delete

表达式_一个表示一个Shape对象的变量。_expression A variable that represents a Shape object.

示例Example

本示例从活动演示文稿的第一张幻灯片中删除所有任意多边形。This example deletes all freeform shapes from slide one in the active presentation.

With Application.ActivePresentation.Slides(1).Shapes

    For intShape = .Count To 1 Step -1

        With .Item(intShape)

            If .Type = msoFreeform Then .Delete

        End With

    Next

End With

另请参阅See also

概念Concepts

Shape 对象Shape Object

© 2018 Microsoft