Object Model Reference : Classes : S : SnapPoint : Properties : SnapPoint.Type |
Property Type As cdrPointType
Member of SnapPoint
The Type property returns the type for a snap point, regardless of whether it belongs to a shape or is free-floating on the page.
The Type property returns a read-only value of cdrPointType.
The following VBA example selects one of the shapes to which the selected connector line is attached.
Sub Test() |
Dim sp As New SnapPoint |
If ActiveShape.Type <> cdrConnectorShape Then |
MsgBox "Select a connector line." |
Exit Sub |
End If |
Set sp = ActiveShape.Connector.StartPoint |
If sp.Type = cdrSnapPoint Then |
sp.Parent.CreateSelection |
End If |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.