Previous Document Next Document
Shape.Curve

Property Curve As Curve

Member of Shape

The Curve property returns a Curve object for connector shapes.

The Curve property returns a read-only value.

The following code example creates an ellipse and converts it to a curve shape. It then changes all curve segments to lines, resulting in a diamond shape.

Sub Test() 
 Dim s As Shape 
 Set s = ActiveLayer.CreateEllipse2(3, 3, 2, 1) 
 s.ConvertToCurves 
 s.Curve.Segments.All.SetType cdrLineSegment 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.