Previous Document Next Document
SnapPoint.PositionY

Property PositionY As Double

Member of SnapPoint

The PositionY property returns or sets the vertical position of a snap point. If the point is on a shape, its position cannot be changed.

The following code example creates a star and attaches a connector line to its center. The other end of the connector line is placed on the page at the coordinates (1", 2").

Sub Test() 
 Dim s1 As Shape, sCon As Shape 
 Dim sp As New SnapPoint 
 Set s1 = ActiveLayer.CreatePolygon(1.6, 10, 4.5, 7, 5, 1, 2) 
 sp.PositionX = 1 
 sp.PositionY = 2 
 Set sCon = ActiveLayer.CreateConnector(s1.SnapPoints(12), sp) 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.