Table of contents

ShapeRange.Name 属性 (PowerPoint)ShapeRange.Name Property (PowerPoint)

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

创建一个形状时,Microsoft PowerPoint 自动将其分配在窗体的_形状区域_,其中_形状区域_标识图形或自选图形的类型和_数量_是一个整数,表示集合中的唯一名称在幻灯片上的形状。例如,在幻灯片上的形状的自动生成的名称可能是占位符 1、 椭圆 2 和矩形 3。要避免具有自动分配的名称冲突,请不要为用户定义的名称,其中_形状_是一个值,用于自动生成的名称,以及_数目_为任意正整数使用_形状区域_。形状范围必须至少包含一个形状。读/写。When a shape is created, Microsoft PowerPoint automatically assigns it a name in the form ShapeType Number, where ShapeType identifies the type of shape or AutoShape, and Number is an integer that's unique within the collection of shapes on the slide. For example, the automatically generated names of the shapes on a slide could be Placeholder 1, Oval 2, and Rectangle 3. To avoid conflict with automatically assigned names, don't use the form ShapeType Number for user-defined names, where ShapeType is a value that is used for automatically generated names, and Number is any positive integer. A shape range must contain exactly one shape. Read/write.


表达式名称expression. Name

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

返回值Return Value



可用于该对象的名称一起使用Item方法返回对对象的引用,如果找不到包含该对象的Item方法采用一个variant 类型的值作为参数。例如,如果某个形状的Name属性的值为矩形 2,然后.Shapes("Rectangle 2")将返回到该形状的引用。You can use the object's name in conjunction with the Item method to return a reference to the object if the Item method for the collection that contains the object takes a Variant argument. For example, if the value of the Name property for a shape is Rectangle 2, then .Shapes("Rectangle 2") will return a reference to that shape.

另请参阅See also


绘图对象ShapeRange Object

© 2018 Microsoft