MouseHoverEventArgs(ITextView, Int32, IMappingPoint) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of a MouseHoverEventArgs.
public:
MouseHoverEventArgs(Microsoft::VisualStudio::Text::Editor::ITextView ^ view, int position, Microsoft::VisualStudio::Text::IMappingPoint ^ textPosition);
public:
MouseHoverEventArgs(Microsoft::VisualStudio::Text::Editor::ITextView ^ view, int position, Microsoft::VisualStudio::Text::IMappingPoint ^ textPosition);
MouseHoverEventArgs(Microsoft::VisualStudio::Text::Editor::ITextView const & view, int position, Microsoft::VisualStudio::Text::IMappingPoint const & textPosition);
public MouseHoverEventArgs (Microsoft.VisualStudio.Text.Editor.ITextView view, int position, Microsoft.VisualStudio.Text.IMappingPoint textPosition);
new Microsoft.VisualStudio.Text.Editor.MouseHoverEventArgs : Microsoft.VisualStudio.Text.Editor.ITextView * int * Microsoft.VisualStudio.Text.IMappingPoint -> Microsoft.VisualStudio.Text.Editor.MouseHoverEventArgs
Public Sub New (view As ITextView, position As Integer, textPosition As IMappingPoint)
Parameters
- view
- ITextView
The view in which the hover event is being generated.
- position
- Int32
The position of the character under the mouse in the snapshot span of the view.
- textPosition
- IMappingPoint
The position mapped to the buffer graph of the character under the mouse.
Exceptions
view
is null.
position
is negative or greater than the length of the view's buffer.