Environment.GetAllCrossingEntities Method

Returns the list of all the visible and selectable entities geometrically crossing the selection box, regardless of their actual visibility on screen.
Public Function GetAllCrossingEntities( _ 
ByVal selectionBox As Rectangle, _ 
Optional ByVal selectableOnly As Boolean = true _ 
) As Integer()
This language is not supported or no code example is available.
public int[] GetAllCrossingEntities( 
Rectangle selectionBox
bool selectableOnly = true 
)
This language is not supported or no code example is available.

Parameters

selectionBox
Rectangle

Selection rectangle's in screen coordinates

selectableOnly
bool

When true, checks the Entity.Selectable property, otherwise no.

Return Value

int[]

The list of entity indices.

Remarks
 
All entities in the selectionBox are considered, even the ones covered by others.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition