GoDiagram Web Reference
SnapPoint Method (GoGrid)

a PointF in document coordinates
the object being moved or resized (may be null/nothing)
the GoView in which the snapping is occuring; may be null/nothing
This method is called by GoView.GoView.SnapPoint to find the point to which an object should be moved or resized.
Syntax
'Declaration
 
Public Overridable Function SnapPoint( _
   ByVal p As PointF, _
   ByVal obj As GoObject, _
   ByVal view As GoView _
) As PointF
public virtual PointF SnapPoint( 
   PointF p,
   GoObject obj,
   GoView view
)

Parameters

p
a PointF in document coordinates
obj
the object being moved or resized (may be null/nothing)
view
the GoView in which the snapping is occuring; may be null/nothing

Return Value

by default, just the result of calling GoGrid.FindNearestGridPoint
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

GoGrid Class
GoGrid Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback