Object Model Reference : Classes : S : Shape : Properties : 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 VBA 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 |
Copyright 2013 Corel Corporation. All rights reserved.