GoDiagram Web Reference
CanSnapPoint Method (IGoDragSnapper)

a PointF in document coordinates
the GoObject being moved or resized
the GoView that is moving or resizing an object
This predicate is called by GoView.GoView.SnapPoint to decide whether this grid-like object should take part.
Syntax
'Declaration
 
Function CanSnapPoint( _
   ByVal p As PointF, _
   ByVal obj As GoObject, _
   ByVal view As GoView _
) As Boolean
bool CanSnapPoint( 
   PointF p,
   GoObject obj,
   GoView view
)

Parameters

p
a PointF in document coordinates
obj
the GoObject being moved or resized
view
the GoView that is moving or resizing an object

Return Value

true if the point p is in (or near) this object and if SnapPoint should be called
Remarks
An implementation of this predicate should probably return false if GoObject.CanView returns false. It also should probably return false if this object is part of the view's GoView.Selection.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IGoDragSnapper Interface
IGoDragSnapper Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback