Environment.GetAllLabelsUnderMouseCursor Method

Returns all the visible labels under the mouse cursor in the active viewport.
Public Function GetAllLabelsUnderMouseCursor( _ 
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[] GetAllLabelsUnderMouseCursor( 
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 list of label indices.

Remarks
 
The sensitivity is affected by the PickBoxSize parameter. Only the labels that are visible on screen and in the selectionBox are considered, the ones covered by other labels are not considered.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition