API Documentation > CorelDRAW > 2025-v26 > SnapPoint > IVGSnapPoint
SnapPoint.Type property
Gets the SnapPoint Type
Syntax:
Property Get Type() As cdrPointType
Remarks:
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.
Examples:
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