GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / OnSelectionDropReject Method
a GoObjectEventArgs whose GoObjectEventArgs.GoObjectEventArgs.GoObject property refers to the object at which the mouse might drop the selection; setting the GoInputEventArgs.InputState property to GoInputState.GoInputState.Cancel will also reject a drop, just as returning true does
In This Topic
    OnSelectionDropReject Method
    In This Topic
    Called during a user's drag of the view's Selection when the mouse is over this object, to give this object a chance to veto a drop.
    Syntax
    public virtual bool OnSelectionDropReject( 
       GoObjectEventArgs evt,
       GoView view
    )

    Parameters

    evt
    a GoObjectEventArgs whose GoObjectEventArgs.GoObjectEventArgs.GoObject property refers to the object at which the mouse might drop the selection; setting the GoInputEventArgs.InputState property to GoInputState.GoInputState.Cancel will also reject a drop, just as returning true does
    view

    Return Value

    True to indicate a drop of the view's Selection should not occur on this object. False to indicate that it might be OK, and to continue calling this method up the chain of parent objects to see if any parent wants to cancel the drop.
    Remarks
    By default this does nothing but return false. This method is normally invoked by the GoToolDragging tool, through the GoView.GoView.DoSelectionDropReject method.
    See Also