Environment.GetCrossingEntities (Rectangle, IList<Entity>, Boolean, Boolean, Transformation) Method

Returns the list of all the visible and selectable entities crossing the specified selection box.
Public Overridable Function GetCrossingEntities( _ 
ByVal selectionBox As Rectangle, _ 
ByVal entList As IList(Of Entity), _ 
ByVal firstOnly As Boolean, _ 
Optional ByVal selectableOnly As Boolean = true, _ 
Optional ByVal accParentTransform As Transformation = null _ 
) As Integer()
This language is not supported or no code example is available.
public virtual int[] GetCrossingEntities( 
Rectangle selectionBox
IList<Entity> entList
bool firstOnly
bool selectableOnly = true, 
Transformation accParentTransform = null 
)
This language is not supported or no code example is available.

Parameters

selectionBox
Rectangle

Selection Rectangle box in screen coordinates

entList
IList<Entity>

A custom list of entities

firstOnly
bool

When true, returns immediately after selecting the first entity

selectableOnly
bool

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

accParentTransform
Transformation

Accumulated parent transformation or null/Nothing

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.

.NET Framework

Supported in: 4.5, 4.6, 4.7

In this article

Definition