Adobe Illustrator CS6 Type Library JS: Artboards

Illustrator CS6

Class

Artboards

 A collection of artboards.

See also Artboard.

QuickLinks

add, getActiveArtboardIndex, getByName, getByName, insert, remove, removeAll, setActiveArtboardIndex

Hierarchy

Object
Artboards

Properties

PropertyTypeAccessDescription
lengthint readonlyNumber of elements in the collection.
parentObject readonlyThe object's container.
typenamestring readonlyThe class name of the object.

Methods

Class

Artboard add (artboardRect: Rectangle)
Add artboard object.

ParameterTypeDescription
artboardRectRectangleSize and position of artboard.

Instances

Int32 getActiveArtboardIndex ()
Retrieves the index position of the active artboard in the document's list.

Artboard getByName (name: string)
Get the first element in the collection with the provided name.

ParameterTypeDescription
namestring

Artboard getByName (artboardName: string)
Get the first Artboard with specified name.

ParameterTypeDescription
artboardNamestringThe name of the artboard.

void insert (artboardRect: Rectangle, index: Int32)
Insert an Artboard at specified location.

ParameterTypeDescription
artboardRectRectangleSize and position of artboard.
indexInt32Index position where artboard should be inserted.

void remove (index: Int32)
Delete artboard object.

ParameterTypeDescription
indexInt32Index of the crop area to be deleted.

void removeAll ()
Deletes all elements.

void setActiveArtboardIndex (index: Int32)
Makes a specific artboard active, and makes it current in the iteration order.

ParameterTypeDescription
indexInt32The 0-based index position of the artboard in the document list.

Element of

Document.artboards

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