Previous Document Next Document

Object Model Reference : Classes : A : ArrowHeads : Properties : ArrowHeads.Item


ArrowHeads.Item

Property Item(Index As Long) As ArrowHead

Description

Member of ArrowHeads

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

Item is the default property of the ArrowHeads class, and its reference can be omitted when you are accessing items in an ArrowHeads collection. For example, ArrowHeads.Item(5) is the same as ArrowHeads(5) — they both reference the fifth arrowhead in the collection.

The Item property returns a read-only value.

Parameter
Description
Index
Specifies the preset placeholder that uniquely identifies each member of the ArrowHeads collection

VBA example

The following VBA 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 2013 Corel Corporation. All rights reserved.