CS3 JS: Bounds

CS3 ScriptUI

Bounds

 

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

PropertyTypeAccessDescription
bottomNumberr/wThe vertical coordinate, a pixel offset from the origin of the element's coordinate space.
heightNumberr/wThe height in pixels.
leftNumberr/wThe horizontal coordinate, a pixel offset from the origin of the element's coordinate space.
lengthNumberreadonlyThe array length. (value: 4)
rightNumberr/wThe width in pixels.
topNumberr/wThe height in pixels.
widthNumberr/wThe width in pixels.
xNumberr/wThe horizontal coordinate, a pixel offset from the origin of the element's coordinate space.
yNumberr/wThe vertical coordinate, a pixel offset from the origin of the element's coordinate space.

Element of

Button.bounds

Button.windowBounds

Checkbox.bounds

Checkbox.windowBounds

DropDownList.bounds

DropDownList.windowBounds

EditText.bounds

EditText.windowBounds

FlashPlayer.bounds

FlashPlayer.windowBounds

Group.bounds

Group.windowBounds

IconButton.bounds

IconButton.windowBounds

Image.bounds

Image.windowBounds

ListBox.bounds

ListBox.windowBounds

Panel.bounds

Panel.windowBounds

Progressbar.bounds

Progressbar.windowBounds

RadioButton.bounds

RadioButton.windowBounds

Scrollbar.bounds

Scrollbar.windowBounds

Slider.bounds

Slider.windowBounds

StaticText.bounds

StaticText.windowBounds

TreeView.bounds

TreeView.windowBounds

Window.bounds

Window.frameBounds

Window.windowBounds

Used in

Group.add (type:String, bounds:Bounds, text:String, properties:Object)

Panel.add (type:String, bounds:Bounds, text:String, properties:Object)

Window.Window (type:String, title:String, bounds:Bounds, properties:Object)

Window.add (type:String, bounds:Bounds, text:String, properties:Object)

Contents :: Index