ItemFromID property

ItemFromID 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.

See also         Example         Applies to

Returns an item of a collection using the ID of the item.

Version added

4.0

Syntax

        
          objRet = object.ItemFromID(id)
      

objRet

The object retrieved from the collection.

object

Required. An expression that returns a collection from the Applies to list.

id

Required Long. The ID of the object to retrieve.

Remarks

The ID of a Shape object uniquely identifies the shape within its page or master.

The ID of a Style object uniquely identifies the style within its document.

The ID of a Font object corresponds to the number stored in the Font cell of a row in a shape's Character Properties section. The ID associated with a particular font varies between systems or as fonts are installed on and removed from a given system.

The ID of an Event object uniquely identifies an event in its EventList collection for the life of the collection.