Adobe Illustrator CS6 Type Library JS: Dimension

Illustrator CS6

Class

Dimension

 

Defines the size of a window or UI element. Contains a 2-element array.

Specifies the height and width of an element in pixels. A Dimension object is created when you set an element's size property. You can set the property using a JavaScript object with named properties {width: wd, height: ht}, or an array with 2 values in the order [wd, ht].

Properties

PropertyTypeAccessDescription
heightNumber r/wThe height in pixels.
lengthNumber readonlyThe array length. (default: 2)
widthNumber r/wThe width in pixels.

Element of

Button.maximumSize

Button.minimumSize

Button.preferredSize

Button.size

Checkbox.maximumSize

Checkbox.minimumSize

Checkbox.preferredSize

Checkbox.size

DropDownList.itemSize

DropDownList.maximumSize

DropDownList.minimumSize

DropDownList.preferredSize

DropDownList.size

EditText.maximumSize

EditText.minimumSize

EditText.preferredSize

EditText.size

FlashPlayer.maximumSize

FlashPlayer.minimumSize

FlashPlayer.preferredSize

FlashPlayer.size

Group.maximumSize

Group.minimumSize

Group.preferredSize

Group.size

IconButton.maximumSize

IconButton.minimumSize

IconButton.preferredSize

IconButton.size

ListBox.itemSize

ListBox.maximumSize

ListBox.minimumSize

ListBox.preferredSize

ListBox.size

Panel.maximumSize

Panel.minimumSize

Panel.preferredSize

Panel.size

Progressbar.maximumSize

Progressbar.minimumSize

Progressbar.preferredSize

Progressbar.size

RadioButton.maximumSize

RadioButton.minimumSize

RadioButton.preferredSize

RadioButton.size

ScriptUIImage.size

Scrollbar.maximumSize

Scrollbar.minimumSize

Scrollbar.preferredSize

Scrollbar.size

Slider.maximumSize

Slider.minimumSize

Slider.preferredSize

Slider.size

StaticText.maximumSize

StaticText.minimumSize

StaticText.preferredSize

StaticText.size

TreeView.itemSize

TreeView.maximumSize

TreeView.minimumSize

TreeView.preferredSize

TreeView.size

Window.frameSize

Window.maximumSize

Window.minimumSize

Window.preferredSize

Window.size

Return

Dimension ScriptUIGraphics.measureString (text: String[, font: ScriptUIFont][, boundingWidth: Number])

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