Environment.GetLabelUnderMouseCursor Method
Returns the index of the first label under the mouse cursor.
Public Function GetLabelUnderMouseCursor( _
ByVal mousePos As Point, _
Optional ByVal selectableOnly As Boolean = true _
) As Integer
This language is not supported or no code example is available.
public int GetLabelUnderMouseCursor(
Point mousePos,
bool selectableOnly = true
)
This language is not supported or no code example is available.
Parameters
-
mousePos
-
Point
Mouse position in screen coordinates
-
selectableOnly
-
bool
When true, checks the Entity.Selectable property, otherwise no.
Return Value
int
The index of the label, -1 otherwise.
.NET Framework
Supported in: 4.8