Click or drag to resize

MathHelperSortEntities Method

Sorts a list of contiguous entities.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public static List<EntityObject> SortEntities(
	List<EntityObject> Entities,
	bool Reverse = true
)

Parameters

Entities
Type: System.Collections.GenericListEntityObject
A list of entities.
Reverse (Optional)
Type: SystemBoolean
True to sort in reverse order (counterclockwise).

Return Value

Type: ListEntityObject
The sorted list. Null if in the Entities properties the are entities different than arcs, lines, open polylines, splines and ellipses.
See Also