View.WhatsIn Methods
Finds features presented in the specified window rectangle.
Overload List
Name | Description | |
---|---|---|
Public method | WhatsIn(Rectangle rectangle) | Finds features presented in the specified window rectangle. |
Public method | WhatsIn(System.Int32 xMin, System.Int32 yMin, System.Int32 xMax, System.Int32 yMax) | Finds features presented in the specified window rectangle. |
WhatsIn(Rectangle rectangle)
Finds features presented in the specified window rectangle.Syntax
public PresentationObjectCollection WhatsIn (
Rectangle rectangle
)
Parameters
The window rectangle to check.
Return Value
Remarks
This method finds what has been presented inside the specified rectangle.
The method returns a list of PresentationObject instances, for all presentations that overlap the rectangle, and that originate from selectable layers (see Layer.Selectable). The object that is drawn last (on top) is first in the list in 2D. In 3D, the closest object is first. Presentation objects created by selection visualizers sorted before all other presentation objects. The coordinates of the presentation objects are always in the coordinate reference system of the view.
The selection of objects using WhatsIn is implemented using local updates around the selection rectangle. Features that are outside of the selection area but have a visualization that intersects with the selection rectangle will in some cases not be detected by default (see OrdinaryLayer.PixelMarginLeft).
WhatsIn(System.Int32 xMin, System.Int32 yMin, System.Int32 xMax, System.Int32 yMax)
Finds features presented in the specified window rectangle.Syntax
public PresentationObjectCollection WhatsIn (
System.Int32 xMin,
System.Int32 yMin,
System.Int32 xMax,
System.Int32 yMax
)
Parameters
The x-coordinate of the upper left corner of the rectangle to check.
The y-coordinate of the upper left corner of the rectangle to check.
The x-coordinate of the lower right corner of the rectangle to check.
The y-coordinate of the lower right corner of the rectangle to check.
Return Value
Remarks
This method finds what has been presented inside the specified rectangle.
The method returns a list of PresentationObject instances, for all presentations that overlap the rectangle, and that originate from selectable layers (see Layer.Selectable). The object that is drawn last (on top) is first in the list in 2D. In 3D, the closest object is first. Presentation objects created by selection visualizers sorted before all other presentation objects. The coordinates of the presentation objects are always in the coordinate reference system of the view.
The selection of objects using WhatsIn is implemented using local updates around the selection rectangle. Features that are outside of the selection area but have a visualization that intersects with the selection rectangle will in some cases not be detected by default (see OrdinaryLayer.PixelMarginLeft).
Platforms
Windows, Linux, Android