API Documentation > CorelDRAW > 2025-v26
SnapPoint class
SnapPoint class
Syntax:
Class SnapPoint
Remarks:
The SnapPoint class represents the settings for a snap point on a shape. Basic shapes have several snap points - for example, a rectangle has snap points at the middle of each side. Additional snap points can be added to a shape by using the SnapPoints.AddUserSnapPoint method or the SnapPoints.AddUserSnapPointEx method. You can create a SnapPoint object by using the New keyword in Visual Basic.
Properties:
Name Description
Application Gets the application to which the Snap Point belongs
BBox Returns properties specific to bounding box snap point
CanChangeDirection Returns true if the snap point can change direction
Direction Specifies the default direction for the snap point
Edge Returns properties specific to edge snap point
IsDeletable Returns true if the snap point can be deleted
IsMovable Returns true if the snap point can be moved
IsSelectable Returns true if the snap point can be selected
Object Returns properties specific to object snap point
Parent Gets the shape parent
PositionX Gets or sets the SnapPoint's X coordinate
PositionY Gets or sets the SnapPoint's Y coordinate
ReferenceData Returns a unique identifier of the snap point
Selected Specifies whether the snap point is selected by the user
Shape Returns the shape the snap point belongs to
Type Gets the SnapPoint Type
User Returns properties specific to user snap point
UsesDirection Specifies whether the snap point uses the direction
Methods:
Name Description
CreateSelection Selects the snap point (while deselecting all others)
Delete Deletes the snap point
GetPosition Gets the position of the snap point
Move Moves the snap point
SetPosition Moves the snap point to the specified position