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].
Go to Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
read/write |
The vertical coordinate, a pixel offset from the origin of the element's coordinate space. |
||
read/write |
The height in pixels. |
||
read/write |
The horizontal coordinate, a pixel offset from the origin of the element's coordinate space. |
||
readonly |
The array length. |
||
read/write |
The width in pixels. |
||
read/write |
The height in pixels. |
||
read/write |
The width in pixels. |
||
read/write |
The horizontal coordinate, a pixel offset from the origin of the element's coordinate space. |
||
read/write |
The vertical coordinate, a pixel offset from the origin of the element's coordinate space. |
StaticText (SUI).bounds
Button (SUI).bounds
IconButton (SUI).bounds
EditText (SUI).bounds
ListBox (SUI).bounds
DropDownList (SUI).bounds
Checkbox (SUI).bounds
Scrollbar (SUI).bounds
RadioButton (SUI).bounds
Slider (SUI).bounds
Progressbar (SUI).bounds
TreeView (SUI).bounds
FlashPlayer (SUI).bounds
Group (SUI).bounds
Panel (SUI).bounds
Window (SUI).frameBounds
Window (SUI).bounds
StaticText (SUI).windowBounds
Button (SUI).windowBounds
IconButton (SUI).windowBounds
EditText (SUI).windowBounds
ListBox (SUI).windowBounds
DropDownList (SUI).windowBounds
Checkbox (SUI).windowBounds
Scrollbar (SUI).windowBounds
RadioButton (SUI).windowBounds
Slider (SUI).windowBounds
Progressbar (SUI).windowBounds
TreeView (SUI).windowBounds
FlashPlayer (SUI).windowBounds
Group (SUI).windowBounds
Panel (SUI).windowBounds
Window (SUI).windowBounds