GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / DoObjectEnterLeave Method
In This Topic
    DoObjectEnterLeave Method
    In This Topic
    Perform the behavior that normally occurs when there is a change in the document object that the mouse is over.
    Syntax
    public virtual void DoObjectEnterLeave( 
       GoObject from,
       GoObject to,
       GoInputEventArgs evt
    )

    Parameters

    from
    to
    evt
    Remarks

    By default this raises the ObjectEnterLeave event by calling RaiseObjectEnterLeave. It calls GoObject.GoObject.OnEnterLeave for the from object (if not null) and the to object (if not null) and proceeds up the GoObject.Parent chain for both objects. This allows groups such as nodes the ability to easily detect when the mouse enters or leaves the node, and to detect when the mouse moves over different child objects of a node. If both from and to are part of the same group, this method does not call GoObject.OnEnterLeave twice on the common parent group. A true value from a call to GoObject.OnEnterLeave will stop that chain of calls up the GoObject.Parent tree.

    This is normally called from the GoToolManager.DoMouseMove method, and from the GoToolDragging.DoMouseMove method. Therefore this ObjectEnterLeave event is not raised during a resize or a linking or a rubber-band selection operation. However, you may extend existing tools or define new tools to call this method under the circumstances and with the objects that your policy would indicate.

    See Also