Previous Document Next Document

Object Model Reference : Classes : S : Shape : Methods : Shape.CreateArrowHead


Shape.CreateArrowHead

Function CreateArrowHead() As ArrowHead

Description

Member of Shape

The CreateArrowhead method creates an arrowhead from a specified shape. The shape must be of a type that can be converted to a curve.

VBA example

The following VBA example creates an arrowhead from a six-sided star polygon and applies it to a line.

Sub Test()
 Dim s As Shape, ar As ArrowHead
 Set s = ActiveLayer.CreatePolygon(0, 0, 2, 2, 6, , , True)
 Set ar = s.CreateArrowHead()
 s.Delete
 Set s = ActiveLayer.CreateLineSegment(0, 0, 5, 5)
 s.Outline.Width = 0.1
 s.Outline.EndArrow = ar
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.