Previous Document Next Document
SnapPoint.Node

Property Node As Node

Member of SnapPoint

The Node property returns a corresponding Node object for a curve.

This property is accessible only for a snap point on a curve shape.

The Node property returns a read-only value.

The following code example creates two stars and connects them with a connector line. It then converts one of the nodes attached to the connector to a smooth node.

Sub Test() 
 Dim s1 As Shape, s2 As Shape, sCon As Shape 
 Dim n As Node 
 Set s1 = ActiveLayer.CreatePolygon(1.6, 10, 4.5, 7, 5, 1, 2) 
 s1.ConvertToCurves 
 Set s2 = ActiveLayer.CreatePolygon(2.4, 5, 5.7, 2, 5, 1, 2) 
 s2.ConvertToCurves 
 Set sCon = ActiveLayer.CreateConnector(s1.SnapPoints(7), 
s2.SnapPoints(9)) 
 Set n = sCon.Connector.StartPoint.Node 
 n.Segment.Type = cdrCurveSegment 
 n.Segment.Next.Type = cdrCurveSegment 
 n.Type = cdrSmoothNode 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.