Environment.GetCrossingEntities (Rectangle, Boolean, Boolean) Method

Returns the list of all the visible and selectable entities crossing the specified selection box.
Protected Overridable Function GetCrossingEntities( _ 
ByVal selectionBox As Rectangle, _ 
ByVal firstOnly As Boolean, _ 
Optional ByVal selectableOnly As Boolean = true _ 
) As Integer()
This language is not supported or no code example is available.
protected virtual int[] GetCrossingEntities( 
Rectangle selectionBox
bool firstOnly
bool selectableOnly = true 
)
This language is not supported or no code example is available.

Parameters

selectionBox
Rectangle

Selection Rectangle box in screen coordinates

firstOnly
bool

When true, returns immediately after selecting the first entity

selectableOnly
bool

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

Return Value

int[]

An array of indices representing the selected entity position.

Remarks
 

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

Affected by selection scope (Model.SetSelectionScope).

.NET Framework

Supported in: 4.8

In this article

Definition