Previous Document Next Document

Object Model Reference : Classes : S : SnapPoint : Properties : SnapPoint.PositionX


SnapPoint.PositionX

Property PositionX As Double

Description

Member of SnapPoint

The PositionX property returns or specifies the horizontal position of a snap point. If the point is on a shape, its position cannot be changed.

VBA example

The following VBA 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(2), sp)
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.