Previous Document Next Document

Object Model Reference : Classes : S : Shape : Methods : Shape.Weld


Shape.Weld

Function Weld(TargetShape As Shape, [LeaveSource As Boolean = False], [LeaveTarget As Boolean = False]) As Shape

Description

Member of Shape

The Weld method welds shapes together.

Parameter
Description
TargetShape
Specifies the shape with which to weld
LeaveSource
Specifies whether to keep an original of the welded shape. This parameter is optional, and its default value is False.
LeaveTarget
Specifies whether to keep the shape with which the weld was performed. This parameter is optional, and its default value is False.

VBA example

The following VBA example creates a circle and a square, and it then welds them together.

Sub Test()
 Dim s1 As Shape, s2 As Shape
 Dim s As Shape
 Set s1 = ActiveLayer.CreateEllipse2(4, 5, 2)
 Set s2 = ActiveLayer.CreateRectangle2(2, 1, 4, 4)
 Set s = s1.Weld(s2)
 s.Fill.UniformColor.CMYKAssign 100, 0, 0, 0
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.