GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoView Class / ObjectEnterLeave Event
In This Topic
    ObjectEnterLeave Event
    In This Topic
    The mouse entered and/or left a document object, when no particular tool is running (a mouse-over) or when dragging.
    Syntax
    [Category("GoView")]
    [Description("The mouse entered and/or left a document object during a mouse-over or a drag (a GoObjectEnterLeaveEventHandler)")]
    public event GoObjectEnterLeaveEventHandler ObjectEnterLeave
    Event Data

    The event handler receives an argument of type GoObjectEnterLeaveEventArgs containing data related to this event. The following GoObjectEnterLeaveEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets whether Modifiers has Keys.Alt set. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets the MouseButtons used with this input event. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets whether Modifiers has Keys.Control set. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets the amount of change associated with a mouse-wheel rotation. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets the point at which this input event occurred. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets whether this is a double-click event. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets the DragEventArgs associated with this input event. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets the GoObject that the mouse had been over.  
    Gets or sets the GoInputState as defined by various tools. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets whether Buttons equals MouseButtons.Right. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets the key pressed as this input event. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets the KeyEventArgs associated with this input event. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets the modifier keys used with this input event. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets or sets the MouseEventArgs associated with this input event. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets whether Modifiers has Keys.Shift set. (Inherited from Northwoods.Go.GoInputEventArgs)
    Gets the GoObject that the mouse is now over.  
    Gets or sets the point at which this input event occurred. (Inherited from Northwoods.Go.GoInputEventArgs)
    Remarks

    This event is raised when the GoToolManager or the GoToolDragging tool notices that a mouse move causes a change in the current document object that the mouse is over. The GoObjectEnterLeaveEventArgs indicates the object that the mouse had been over, and the object that it is now over. Either object may be null, indicating that it had been or now is over the background of this view.

    Because drag-and-drop is a modal operation, an external drag-and-drop from a different Control will not normally raise any ObjectEnterLeave events. However, you may be able to get such events if you set ExternalDragDropsOnEnter to true and DragsRealtime to true, since then a drag enter may cause some GoObjects to be added to the document by OnDragEnter and DoExternalDrop and then to be dragged around by the GoToolDragging tool.

    See Also