GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / DoMove Method
the GoView whose GoView.MoveSelection or GoView.CopySelection or similar method is calling this method
the original Location
the new Location
In This Topic
    DoMove Method
    In This Topic
    Called when a user moves this object.
    Syntax
    public virtual void DoMove( 
       GoView view,
       PointF origLoc,
       PointF newLoc
    )

    Parameters

    view
    the GoView whose GoView.MoveSelection or GoView.CopySelection or similar method is calling this method
    origLoc
    the original Location
    newLoc
    the new Location
    Remarks
    This is normally called from GoView methods GoView.MoveSelection, and GoView.CopySelection. By default it just sets this object's Location property to the result of a call to ComputeMove: Location = ComputeMove(origLoc, newLoc) However, you can override this method or ComputeMove to constrain the places that this object can be moved to by the user. You will still be able to move this object programmatically by setting the Location or Position property directly. If you want to constrain this object's movement both interactively and programmatically, you should override the Bounds property. Override ComputeMove if you want to constrain the user's movement of this object without regard to the actual view or input events causing the move.
    See Also