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

ShapeRange.ID 属性 (发布服务器)ShapeRange.ID Property (Publisher)

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

返回一个Long ,该值代表形状的类型、 区域的形状或属性、 类型或向导的值。只读的。Returns a Long that represents the type of a shape, range of shapes, or property, type, or value of a wizard. Read-only.

语法Syntax

表达式标识expression. ID

_expression_A 表示一个ShapeRange对象的变量。_expression_A variable that represents a ShapeRange object.

示例Example

以下示例显示当前出版物中第一页上的每个形状的类型。This example displays the type for each shape on the first page of the active publication.

Sub ShapeID() 
 Dim shp As Shape 
 For Each shp In ActiveDocument.Pages(1).Shapes 
 MsgBox shp.ID 
 Next shp 
End Sub
© 2018 Microsoft