Previous Document Next Document

Object Model Reference : Classes : C : Curve : Methods : Curve.ReverseDirection


Curve.ReverseDirection

Sub ReverseDirection()

Description

Member of Curve

The ReverseDirection method changes the flow of a curve to the oposite direction. The first node becomes the last and the last node becomes the first. This is performed for each subpath of the curve.

VBA example

The following VBA example creates a line. An arrowhead is applied to the start position of the line, and the zoom of the active window is increased to 200%. The ReverseDirection method is applied, and the arrowhead that was initially applied to a specific end of the line now appears at the opposite end of the line.

Sub CurveReverse()
 Dim s As Shape
 Set s = ActiveLayer.CreateLineSegment(0, 0, 5, 5)
 s.Outline.StartArrow = ArrowHeads(3)
 ActiveWindow.ActiveView.Zoom = 200
 s.Curve.ReverseDirection
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.