Click or drag to resize

DXFReaderNETControlGetEntity Method (ListEntityObject, Vector2)

Returns the nearest entity among a list of entities to position.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public EntityObject GetEntity(
	List<EntityObject> Entities,
	Vector2 Position
)

Parameters

Entities
Type: System.Collections.GenericListEntityObject
A list of entities.
Position
Type: DXFReaderNETVector2
The position in drawing units.

Return Value

Type: EntityObject
The nearest entity to the position. Null or nothing if no entity is found.
See Also