Canvas.getItemIdsIn

Get items within a selection region.

class Canvas
int[]
getItemIdsIn
(
int x1
,
int y1
,
int x2
,
int y2
,
bool enclosedFully = false
)

Parameters

x1 int

The left edge of the selection region.

y1 int

The top edge of the selection region.

x2 int

The right edge of the selection region.

y2 int

The bottom edge of the selection region.

enclosedFully bool

Specifies if the items have to be enclosed fully or not.

Return Value

Type: int[]

An array of found items.

Meta