Item Method

The Item method returns an individual item in a collection. This is the default method of Documents, AutoShapes, and AutoWindows collections.

Syntax

object.Item( index )

 

Parameter Type Description
index Variant* required, see remarks

 

Remarks

* The type is Double for the AutoSelection collection.

  • For the Documents collection, index can be a 1-based integer or the complete path and file name of the document. The file name without the path can also be specified.

  • For the AutoShapes collection, index can be a 1-based integer or the object ID of the desired shape.

  • For the AutoSelection collection, index can be a 1-based double.

  • For the AutoWindows collection, index can be a 1-based integer or the name of the window as it appears in the window caption.

Example

This example shows how to select an object by name.

Shapes.Item("Polygon 1").Select

 

Used by: AutoAxes collection, AutoDocWindows collection, AutoPlotWindow object, AutoFits collection, AutoLegends collection, AutoPlots collection, AutoSelection collection, AutoShapes collection, AutoWindows collection, Documents collection