Previous Document Next Document
Shapes.Item

Property Item(IndexOrName As Variant) As Shape

Member of Shapes

The Item property returns the specified shape.

The Item property is the default property, and its reference can be omitted when referencing items in the collection. For example, Shapes.Item(2) is the same as Shapes(2) — they both reference the second shape in the Shapes collection.

The Item property returns a read-only value.

Parameters
Description
IndexOrName
Specifies the shape by its index number or name

The following code example removes any fill from the first shape object in the Shapes collection:

Sub ShapesItem() 
 ActiveLayer.Shapes.Item(1).Fill.ApplyNoFill 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.