Adobe Illustrator CS5 Type Library JS: Artboards

Illustrator CS5

Class

Artboards

 A collection of artboards.

QuickLinks

add, getActiveArtboardIndex, 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: Rect)
Add artboard object.

ParameterTypeDescription
artboardRectRectSize and position of artboard.

Instances

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

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

ParameterTypeDescription
artboardNamestringThe name of the artboard.

void insert (artboardRect: Rect, index: int)
Insert an Artboard at specified location.

ParameterTypeDescription
artboardRectRectSize and position of artboard.
indexintIndex position where artboard should be inserted.

void remove (index: int)
Delete artboard object.

ParameterTypeDescription
indexintIndex of the crop area to be deleted.

void removeAll ()
Deletes all elements.

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

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

Element of

Document.artboards

Jongware, 27-Jun-2010 v3.0.3dContents :: Index