Method ItemsNear
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
ItemsNear(DisplayBox)
Gets the items whose box meets a box, in the order they are drawn, as object snaps ask for what lies under the cursor's aperture. Items with no handle are left out, and so is a line without end (XLINE, RAY) that passes the box by further than the box's own size, unless it is drawn for a block reference, whose insertion point a snap takes from any of its items: an XLINE level through (0, 300) comes for the box from (5000, 299) to (5002, 301), not for the one from (5000, 310) to (5002, 312).
public IReadOnlyList<DisplayItem2> ItemsNear(DisplayBox box)
Parameters
boxDisplayBoxThe box, in drawing units.
Returns
- IReadOnlyList<DisplayItem2>
The items.