Adobe Illustrator CS6 Type Library JS: Bounds

Illustrator CS6

Class

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
bottomNumber r/wThe vertical coordinate, a pixel offset from the origin of the element's coordinate space.
heightNumber r/wThe height in pixels.
leftNumber r/wThe horizontal coordinate, a pixel offset from the origin of the element's coordinate space.
lengthNumber readonlyThe array length. (default: 4)
rightNumber r/wThe width in pixels.
topNumber r/wThe height in pixels.
widthNumber r/wThe width in pixels.
xNumber r/wThe horizontal coordinate, a pixel offset from the origin of the element's coordinate space.
yNumber r/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

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:

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

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

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

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

Jongware, 25-Nov-2012 v3.0.3iContents :: Index