Bounds

Description

Defines the boundaries of a window within the screen?s coordinate space, or of a UI element within the container?s coordinate space.

A Bounds object is created when you set an element?s bounds property. You can set the property using a JavaScript object with properties named left, top, right, bottom or x, y, width, height, or an array with 4 values in the order [x, y, wd, ht].

Properties

bottom readonly The vertical coordinate, a pixel offset from the origin of the element’s coordinate space.
height readonly The height in pixels.
left readonly The horizontal coordinate, a pixel offset from the origin of the element’s coordinate space.
length readonly The array length.
right readonly The width in pixels.
top readonly The height in pixels.
width readonly The width in pixels.
x readonly The horizontal coordinate, a pixel offset from the origin of the element’s coordinate space.
y readonly The vertical coordinate, a pixel offset from the origin of the element’s coordinate space.