다음을 통해 공유


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

  • position
    Type: System.Int32
    The position of the character under the mouse in the snapshot span of the view.

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

See Also

Reference

MouseHoverEventArgs Class

Microsoft.VisualStudio.Text.Editor Namespace