Previous Document Next Document

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


Curve.AppendCurve

Sub AppendCurve(Source As Curve)

Description

Member of Curve

The AppendCurve method appends subpaths from a source curve to the current curve.

Parameter
Description
Source
Specifies the source curve

VBA example

The following VBA example iterates through all of the shapes on the active page and creates a new curve that contains all of the shapes. The new curve is filled with red.

Sub Test()
 Dim crv As Curve, s As Shape
 Set crv = CreateCurve(ActiveDocument)
 For Each s In ActivePage.Shapes
  crv.AppendCurve s.DisplayCurve
 Next s
 Set s = ActiveLayer.CreateCurve(crv)
 s.Fill.UniformColor.RGBAssign 255, 0, 0
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.