API Documentation > CorelDRAW > 2025-v26 > SnapPoints > IVGSnapPoints
SnapPoints.Count property
Gets the number of points in the point collection
Syntax:
Property Get Count() As Long
Remarks:
The Count property returns the total number of snap points in a SnapPoints collection.
Examples:
The following VBA example creates a rectangle with rounded corners and displays the number of snap points available for this type of 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