Previous Document Next Document
SnapPoints.Count

Property Count As Long

Member of SnapPoints

The Count property returns the total number of snap point objects in the SnapPoints collection.

The Count property returns a read-only value.

The following code example creates a rectangle with rounded corners and displays the number of snap points available for this shape:

Sub Test() 
 Dim s As Shape 
 Set s = ActiveLayer.CreateRectangle2(0, 0, 2, 2, 0.5, 0.5, 0.5, 0.5) 
 MsgBox s.SnapPoints.Count 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.