Adobe Illustrator CS6 Type Library JS: Object

Illustrator CS6

Class

Object

 The base class of all JavaScript objects.

QuickLinks

Object, hasOwnProperty, isPrototypeOf, isValid, propertyIsEnumerable, toLocaleString, toSource, toString, unwatch, valueOf, watch

Properties

PropertyTypeAccessDescription
constructorFunction readonlyPoints to the constructor function that created this object.
Note that this property is treated as an XML element in the XML class.
prototypeObject readonlyPoints to the prototype object for this object.
Note that this property is treated as an XML element in the XML class.
reflectReflection readonlyRetrieves and returns the Reflection object associated with this method or a property.
Note that this property is treated as an XML element in the XML class.

Methods

Constructor

Object Object (what: any)
Creates and returns a new object of a given type.

ParameterTypeDescription
what any The object type.

Examplenew Object()

Class

bool isValid (what: Object)
Reports whether an object is still valid.

ParameterTypeDescription
whatObjectThe object to check.

Instances

bool hasOwnProperty (name: string)
Reports whether a given property is defined with an instance or within the prototype chain.

ParameterTypeDescription
namestringThe name of the property to check.

bool isPrototypeOf (what: Object)
Checks whether the given object is a prototype of this object.

ParameterTypeDescription
whatObjectThe object to check.

bool propertyIsEnumerable (name: string)
Reports whether a given property is enumerable.

ParameterTypeDescription
namestringThe name of the property to check.

string toLocaleString ()
Creates and returns a string representing this object, localized for the current locale. See toString().

string toSource ()
Creates and returns a string representation of this object.
This function serializes the object, so that it can, for example, be passed between engines. Pass the returned string back to eval() to recreate the object. Works only with built-in classes.

string toString ()
Creates and returns a string representing this object.
Many objects (such as Date) override this method in favor of their own implementation. If an object has no string value and no user-defined toString() method, the default method returns [object type], where type is the object type or the name of the constructor function that created the object.

Exampleobj.toString()

void unwatch (name: string)
Removes the watch function of a property.

ParameterTypeDescription
namestringThe name of the property to unwatch.

Object valueOf ()
Retrieves and returns the primitive value of this object.
If the object has no primitive value, returns the object itself. Note that you rarely need to call this method yourself. The JavaScript interpreter automatically invokes it when encountering an object where a primitive value is expected.

Exampleobj.valueOf()

void watch (name: string, func: Function)
Adds a watch function to a property, which is called when the value changes.
This function can accept, modify, or reject a new value that the user, application, or a script has attempted to place in a property.

ParameterTypeDescription
namestringThe name of the property to watch.
funcFunctionThe function to be called when the value of this property changes.
This function must three arguments, and return as its result the value to be stored in the property. The arguments are:
• name: the name of the property that changes.
• oldValue: The old property value.
• newValue: The new property value that was specified.

Element of

$.global

$.screens

Application.parent

ArtStyle.parent

ArtStyles.parent

Artboard.parent

Artboards.parent

Brush.parent

Brushes.parent

Button.children

Button.parent

Button.properties

CharacterAttributes.parent

CharacterStyle.parent

CharacterStyles.parent

Characters.parent

Checkbox.children

Checkbox.parent

Checkbox.properties

CompoundPathItem.parent

CompoundPathItems.parent

DataSet.parent

DataSets.parent

Document.parent

Documents.parent

DropDownList.children

DropDownList.parent

DropDownList.properties

EditText.children

EditText.parent

EditText.properties

Event.target

FlashPlayer.parent

FlashPlayer.properties

Function.arguments

Gradient.parent

GradientStop.parent

GradientStops.parent

Gradients.parent

GraphItem.parent

GraphItems.parent

Group.children

Group.parent

Group.properties

GroupItem.parent

GroupItems.parent

IconButton.children

IconButton.parent

IconButton.properties

InsertionPoint.parent

InsertionPoints.parent

Layer.parent

Layers.parent

LegacyTextItem.parent

LegacyTextItems.parent

Lines.parent

ListBox.children

ListBox.columns

ListBox.parent

ListBox.properties

ListItem.parent

ListItem.properties

MeshItem.parent

MeshItems.parent

NonNativeItem.parent

NonNativeItems.parent

Object.prototype

OpenOptionsAutoCAD.parent

OpenOptionsPDF.parent

OpenOptionsPhotoshop.parent

PageItem.parent

PageItems.parent

Panel.children

Panel.parent

Panel.properties

ParagraphAttributes.parent

ParagraphStyle.parent

ParagraphStyles.parent

Paragraphs.parent

PathItem.parent

PathItems.parent

PathPoint.parent

PathPoints.parent

Pattern.parent

Patterns.parent

PlacedItem.parent

PlacedItems.parent

PluginItem.parent

PluginItems.parent

Preferences.parent

Progressbar.children

Progressbar.parent

Progressbar.properties

RadioButton.children

RadioButton.parent

RadioButton.properties

RasterItem.parent

RasterItems.parent

ScriptUI.FontStyle

ScriptUI.applicationFonts

ScriptUI.compatibility

ScriptUIFont.style

ScriptUIGraphics.BrushType

ScriptUIGraphics.PenType

Scrollbar.children

Scrollbar.parent

Scrollbar.properties

Slider.children

Slider.parent

Slider.properties

Spot.parent

Spots.parent

StaticText.children

StaticText.parent

StaticText.properties

Stories.parent

Story.parent

Swatch.parent

SwatchGroup.parent

SwatchGroups.parent

Swatches.parent

Symbol.parent

SymbolItem.parent

SymbolItems.parent

Symbols.parent

Tag.parent

Tags.parent

TextFont.parent

TextFonts.parent

TextFrameItem.parent

TextFrameItems.parent

TextPath.parent

TextRange.parent

TextRanges.parent

TracingObject.parent

TracingOptions.parent

TreeView.children

TreeView.parent

TreeView.properties

UIEvent.target

Variable.parent

Variables.parent

View.parent

Views.parent

Window.cancelElement

Window.children

Window.defaultElement

Window.parent

Window.properties

Words.parent

Used in:

CompoundPathItem CompoundPathItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

CompoundPathItem CompoundPathItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

any Function.apply (thisObj: Object, args: Array)

any Function.call (thisObj: Object, argument: any)

GraphItem GraphItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

GraphItem GraphItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

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

GroupItem GroupItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

GroupItem GroupItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

Layer Layer.move (relativeObject: Object, insertionLocation: ElementPlacement)

LegacyTextItem LegacyTextItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

MeshItem MeshItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

MeshItem MeshItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

NonNativeItem NonNativeItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

NonNativeItem NonNativeItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

bool Object.isPrototypeOf (what: Object)

bool Object.isValid (what: Object)

PageItem PageItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

PageItem PageItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

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

PathItem PathItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

PathItem PathItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

PlacedItem PlacedItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

PlacedItem PlacedItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

PluginItem PluginItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

PluginItem PluginItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

RasterItem RasterItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

RasterItem RasterItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

Symbol Symbol.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

SymbolItem SymbolItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

SymbolItem SymbolItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

TextFrameItem TextFrameItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

TextFrameItem TextFrameItem.move (relativeObject: Object, insertionLocation: ElementPlacement)

TextRange TextRange.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)

TextRange TextRange.move (relativeObject: Object, insertionLocation: ElementPlacement)

UIEvent UIEvent.UIEvent (type: String[, captures: Boolean=false][, bubbles: Boolean=false][, view: Object][, detail: Number])

void UIEvent.initUIEvent (type: String[, captures: Boolean=false][, bubbles: Boolean=false][, view: Object][, detail: Number])

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

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

void XML.setSettings (obj: Object)

Return

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

Object Object.Object (what: any)

Object Object.valueOf ()

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

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

Object XML.defaultSettings ()

Object XML.settings ()

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