GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / IGoDragSnapper Interface / CanSnapPoint Method
a PointF in document coordinates
the GoObject being moved or resized
the GoView that is moving or resizing an object
In This Topic
    CanSnapPoint Method (IGoDragSnapper)
    In This Topic
    This predicate is called by GoView.GoView.SnapPoint to decide whether this grid-like object should take part.
    Syntax
    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.
    See Also