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.
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.
Platforms
Windows, Linux, Android