次の方法で共有


GraphicItems.Item Property

Visio Automation Reference

Returns the GraphicItem object at the specified index position in the GraphicItems collection. Read-only.

ms426088.vs_note(en-us,office.12).gif  Note
This Visio object or member is available only to licensed users of Microsoft Office Visio Professional 2007.

Version Information
 Version Added:  Visio 2007

Syntax

expression.Item(Index)

expression   A variable that represents a GraphicItems object.

Parameters

Name Required/Optional Data Type Description
Index Required Long The index of the object to retrieve.

Return Value
GraphicItem

Remarks

Item is the default property of the GraphicItems collection.

The GraphicItems collection is indexed starting with 1.

When you retrieve objects from a collection, you can omit Item from the expression because it is the default property of all collections. The following statement is equivalent to the syntax example given above:

Visual Basic for Applications
  objectReturned = expression(Index) 

See Also