Previous Document Next Document

Object Model Reference : Classes : S : Shape : Properties : Shape.Curve


Shape.Curve

Property Curve As Curve

Description

Member of Shape

The Curve property returns a Curve object for connector shapes.

The Curve property returns a read-only value.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.