Item [Selection]

 

The Item method returns an individual Shape object. This is the default method for the Selection collection.

 

Syntax

object.Item( Index )

 

Parameter

Type

Description

Index

Variant

required, object number

 

Example

This example demonstrates how to return a reference to the second selected object and change its line color to red.

 

Set Ellipse = CurrentLayer.Selection.Item(2)

Ellipse.Line.ForeColor = mvColorRed

 

Used by: Selection collection