CADability dotNET
Returns an array of all objects that interfere with the provided rectangle in repect to the provided Projection. It may also contain some objects which don't interfere but are close to the rectangle, if onlyInside is false.

Namespace: CADability
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public T[] GetObjectsFromRect(
	Projection projection,
	BoundingRect rect,
	bool onlyInside
)
Visual Basic
Public Function GetObjectsFromRect ( _
	projection As Projection, _
	rect As BoundingRect, _
	onlyInside As Boolean _
) As T()
Visual C++
public:
array<T>^ GetObjectsFromRect(
	Projection^ projection, 
	BoundingRect rect, 
	bool onlyInside
)

Parameters

projection
Type: CADability..::..Projection
The projection
rect
Type: CADability..::..BoundingRect
The rectangle, usually from a selection
onlyInside
Type: System..::..Boolean
If true, only objects completely inside the rectangle are returned

Return Value

Array of all objects which match the criterion

See Also