Partager via


ITextView.MouseHover Event

Occurs when the mouse has hovered over a character.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Déclaration
Event MouseHover As EventHandler(Of MouseHoverEventArgs)
event EventHandler<MouseHoverEventArgs> MouseHover
 event EventHandler<MouseHoverEventArgs^>^ MouseHover {
    void add (EventHandler<MouseHoverEventArgs^>^ value);
    void remove (EventHandler<MouseHoverEventArgs^>^ value);
}
abstract MouseHover : IEvent<EventHandler<MouseHoverEventArgs>,
    MouseHoverEventArgs>
JScript does not support events.

Remarks

This event is raised only once, unless either the mouse moves or the text in the view changes. The delay between the time when the mouse stops moving and the time when the event is raised can be changed by adding a MouseHoverAttribute to the event handler and specifying the amount of time (in milliseconds) to delay. If no MouseHoverAttribute is specified on the event handler, the delay is 150 milliseconds.

.NET Framework Security

See Also

Reference

ITextView Interface

Microsoft.VisualStudio.Text.Editor Namespace