[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
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.
Property | Description |
---|---|
Alt | Gets whether Modifiers has Keys.Alt set. (Inherited from Northwoods.Go.GoInputEventArgs) |
Buttons | Gets or sets the MouseButtons used with this input event. (Inherited from Northwoods.Go.GoInputEventArgs) |
Control | Gets whether Modifiers has Keys.Control set. (Inherited from Northwoods.Go.GoInputEventArgs) |
Delta | Gets or sets the amount of change associated with a mouse-wheel rotation. (Inherited from Northwoods.Go.GoInputEventArgs) |
DocPoint | Gets or sets the point at which this input event occurred. (Inherited from Northwoods.Go.GoInputEventArgs) |
DoubleClick | Gets or sets whether this is a double-click event. (Inherited from Northwoods.Go.GoInputEventArgs) |
DragEventArgs | Gets or sets the DragEventArgs associated with this input event. (Inherited from Northwoods.Go.GoInputEventArgs) |
From | Gets the GoObject that the mouse had been over. |
InputState | Gets or sets the GoInputState as defined by various tools. (Inherited from Northwoods.Go.GoInputEventArgs) |
IsContextButton | Gets whether Buttons equals MouseButtons.Right . (Inherited from Northwoods.Go.GoInputEventArgs) |
Key | Gets or sets the key pressed as this input event. (Inherited from Northwoods.Go.GoInputEventArgs) |
KeyEventArgs | Gets or sets the KeyEventArgs associated with this input event. (Inherited from Northwoods.Go.GoInputEventArgs) |
Modifiers | Gets or sets the modifier keys used with this input event. (Inherited from Northwoods.Go.GoInputEventArgs) |
MouseEventArgs | Gets or sets the MouseEventArgs associated with this input event. (Inherited from Northwoods.Go.GoInputEventArgs) |
Shift | Gets whether Modifiers has Keys.Shift set. (Inherited from Northwoods.Go.GoInputEventArgs) |
To | Gets the GoObject that the mouse is now over. |
ViewPoint | Gets or sets the point at which this input event occurred. (Inherited from Northwoods.Go.GoInputEventArgs) |
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.