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
)
Public Function GetEntity (
Entities As List(Of EntityObject),
Position As Vector2
) As EntityObject
public:
EntityObject^ GetEntity(
List<EntityObject^>^ Entities,
Vector2 Position
)
member GetEntity :
Entities : List<EntityObject> *
Position : Vector2 -> EntityObject
METHOD GetEntity(
Entities AS List<EntityObject>,
Position AS Vector2
) AS EntityObject
Parameters
- Entities
- Type: System.Collections.GenericListEntityObject
A list of entities. - Position
- Type: DXFReaderNETVector2
The position in drawing units.
Return Value
Type:
EntityObjectThe nearest entity to the position. Null or nothing if no entity is found.
See Also