共用方式為


ITextView.MouseHover 事件

發生於滑鼠具有停留一個字元。

命名空間:  Microsoft.VisualStudio.Text.Editor
組件:  Microsoft.VisualStudio.Text.UI (在 Microsoft.VisualStudio.Text.UI.dll 中)

語法

'宣告
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 不支援事件。

備註

除非滑鼠移動,或在檢視中的文字變更時,會一次,引發這個事件。 停止移動滑鼠到引發事件時這段延遲可以變更加上MouseHoverAttribute事件處理常式,並延後指定的時間 (以毫秒為單位)。 如果沒有MouseHoverAttribute上所指定的事件處理常式中,此延遲是 150 毫秒。

.NET Framework 安全性

請參閱

參考

ITextView 介面

Microsoft.VisualStudio.Text.Editor 命名空間