API Documentation > CorelDRAW > 2025-v26 > ToolStateAttributes > IVGToolStateAttributes
ToolStateAttributes.ConstrainMouse method
Helper function to constrain a mouse position
Syntax:
Sub ConstrainMouse(ByVal pt As Point, ByVal AnchorPoint As Point)
Parameters:
Name Type Description
pt
AnchorPoint