Environment.GetItemUnderMouseCursor Method

Gets the first item under the mouse cursor (which may include the parents stack for nested entities).
Public Function GetItemUnderMouseCursor( _ 
ByVal mousePos As Point, _ 
Optional ByVal selectableOnly As Boolean = true _ 
) As SelectedItem
This language is not supported or no code example is available.
public SelectedItem GetItemUnderMouseCursor( 
Point mousePos
bool selectableOnly = true 
)
This language is not supported or no code example is available.

Parameters

mousePos
Point

selectableOnly
bool

Return Value

SelectedItem

The item

Remarks
 
The AssemblySelectionMode determines whether the top level entities or nested entities are returned.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition