Eyeshot 11 WinForms API Reference
WinForms Assembly / devDept.Eyeshot Namespace / ViewportLayout Class / GetLabelUnderMouseCursor Method
Mouse position in screen coordinates
When true, checks the devDept.Eyeshot.Entities.Entity.Selectable property, otherwise no.

In This Topic
    GetLabelUnderMouseCursor Method
    In This Topic
    Returns the index of the first label under the mouse cursor.
    Syntax
    'Declaration
     
    Public Function GetLabelUnderMouseCursor( _
       ByVal mousePos As Point, _
       Optional ByVal selectableOnly As Boolean _
    ) As Integer
    public int GetLabelUnderMouseCursor( 
       Point mousePos,
       bool selectableOnly
    )

    Parameters

    mousePos
    Mouse position in screen coordinates
    selectableOnly
    When true, checks the devDept.Eyeshot.Entities.Entity.Selectable property, otherwise no.

    Return Value

    The index of the label, -1 otherwise.
    Remarks
    The sensitivity is affected by the PickBoxSize parameter.
    See Also