Previous Document Next Document
ArrowHeads.Item

Property Item(Index As Long) As ArrowHead

Member of ArrowHeads

The Item property returns a value associated with the index number of an arrowhead object in the ArrowHeads collection of CorelDRAW. Each type of arrowhead in CorelDRAW is identified by an index number represented in base 1. For example, ArrowHeads(5) refers to the fifth arrowhead in the ArrowHeads collection of CorelDRAW.

The Item property of the ArrowHeads collection is the default property and can be omitted when referencing items in the collection. For example, ArrowHeads.Item(5) is the same as ArrowHeads(5) — they both reference the fifth arrowhead in the ArrowHeads collection.

The Item property returns a read-only value.

Parameters
Description
Index
A preset placeholder for each object in an ArrowHeads collection, uniquely identifying each member of the collection

The following code example takes all of the shapes in the current selection, and determines which shapes have outlines. If the shape has an outline, an arrowhead with an index of five is applied to the start arrow position of each shape.

Sub Item() 
 Dim s As Shape 
 For Each s In ActiveDocument.Selection.Shapes 
  If s.Outline.Type = cdrOutline Then 
   s.Outline.StartArrow = ArrowHeads.Item(5) 
  End If 
 Next s 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.