Object Model Reference : Classes : C : Curve : Methods : Curve.ReverseDirection |
Sub ReverseDirection()
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.
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 |
Copyright 2013 Corel Corporation. All rights reserved.