Table of contents
Collapse the table of content
Expand the table of content

Shapes.ItemFromID Property (Visio)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Returns an item of a collection using the ID of the item. Read-only.


expression . ItemFromID( nID )

expression A variable that represents a Shapes collection.


NameRequired/OptionalData TypeDescription
nIDRequiredLongThe ID of the object to retrieve.

Return Value



The ID of a Shape object uniquely identifies the shape within its page or master. You can determine the ID of a shape by displaying the Special dialog box (select the shape, and then click Shape Name on theDeveloper tab.)

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.

If your Visual Studio solution includes the Microsoft.Office.Interop.Visio reference, this property maps to the following types:

  • Microsoft.Office.Interop.Visio.IVShapes.get_ItemFromID
© 2018 Microsoft