MouseHoverEventArgs Constructor (ITextView^, Int32, IMappingPoint^)

 

Initializes a new instance of a MouseHoverEventArgs.

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

public:
MouseHoverEventArgs(
	ITextView^ view,
	int position,
	IMappingPoint^ textPosition
)

Parameters

view
Type: Microsoft.VisualStudio.Text.Editor::ITextView^

The view in which the hover event is being generated.

position
Type: System::Int32

The position of the character under the mouse in the snapshot span of the view.

textPosition
Type: Microsoft.VisualStudio.Text::IMappingPoint^

The position mapped to the buffer graph of the character under the mouse.

Exception Condition
ArgumentNullException

view is null.

ArgumentOutOfRangeException

position is negative or greater than the length of the view's buffer.

Return to top
Show: