Previous Document Next Document

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


SnapPoint.Type

Property Type As cdrPointType

Description

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.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.