MouseHoverEventArgs Constructor
Initializes a new instance of a MouseHoverEventArgs.
Namespace: Microsoft.VisualStudio.Text.Editor
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
‘선언
Public Sub New ( _
view As ITextView, _
position As Integer, _
textPosition As IMappingPoint _
)
public MouseHoverEventArgs(
ITextView view,
int position,
IMappingPoint textPosition
)
public:
MouseHoverEventArgs(
ITextView^ view,
int position,
IMappingPoint^ textPosition
)
new :
view:ITextView *
position:int *
textPosition:IMappingPoint -> MouseHoverEventArgs
public function MouseHoverEventArgs(
view : ITextView,
position : int,
textPosition : IMappingPoint
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | view is nulla null reference (Nothing in Visual Basic). |
ArgumentOutOfRangeException | position is negative or greater than the length of the view's buffer. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.