KitchenDraw SDK 2
Show / Hide Table of Contents

Method SelectFromRectangle

SelectFromRectangle(int, int, int, int, int, int, bool)

Selects all the objects of the current scene which are completely bounded by given rectangle.

Declaration
public void SelectFromRectangle(int windowWidth, int windowHeight, int pixelX1, int pixelY1, int pixelX2, int pixelY2, bool addToSelection = false)
Parameters
Type Name Description
int windowWidth

Width of the window (or image) for which the pixel coordinates are given.

int windowHeight

Height of the window (or image) for which the pixel coordinates are given.

int pixelX1

X coordinate of the first point of the rectangle.

int pixelY1

Y coordinate of the first point of the rectangle.

int pixelX2

X coordinate of the opposite point of the rectangle.

int pixelY2

Y coordinate of the opposite point of the rectangle.

bool addToSelection

If true, the previously selected objects will remain selected.

In this article
Back to top Generated by DocFX