NameID property
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

NameID property

NameID property

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

https://msdn.microsoft.com/en-us/library/aa198710(v=office.10) See also         Example         https://msdn.microsoft.com/en-us/library/aa164278(v=office.10) Applies to

Returns a unique name for a shape.

Version added

2.0

Syntax

strRet = object.NameID

strRet

String. The unique name of the shape.

object

Required. An expression that returns a Shape object.

Remarks

The NameID property returns a unique identifier for each shape on a page or master. The identifier has the following form: sheet.N, where N is the shape's ID property.

The value of the NameID property is unique within a page or master, but not across pages or masters. At any moment, no other shape on the same page or master has the same NameID property. However, shapes on other pages or masters may have the same NameID property. The value of a shape's UniqueID property is unique across pages and masters.

Also, NameID properties are reused. If a shape whose NameID property is sheet.N is deleted, then a shape subsequently added to the same context may be assigned sheet.N as its NameID property. Therefore, persisting NameID properties in separate data stores is generally not as sound as persisting UniqueID properties.

Show:
© 2016 Microsoft