Skip to content

Artboards

artboards

A collection of Artboard objects.


artboards.length

The number of datasets in the collection

Number; read-only.


artboards.parent

The name of the object that contains this dataset

Artboard; read-only.


artboards.typename

The class name of the referenced object.

String; read-only.


artboards.add(artboardRect)

Creates a new Artboard object.

ParameterTypeDescription
artboardRectRectArtboard dimensions

Artboard


artboards.getActiveArtboardIndex()

Retrieves the index position of the active artboard in the document’s list.

Returns the 0-based index.

Number (long)


artboards.getByName(name)

Gets the first element in the collection with the specified name.

ParameterTypeDescription
nameStringName of element to get

Artboard


artboards.insert(artboardRect, index)

Creates a new Artboard object and inserts it at the given index in the list.

ParameterTypeDescription
artboardRectRectArtboard dimensions
indexNumber (long)Index to insert artboard at

Nothing.


artboards.remove(index)

Deletes an artboard object. You cannot remove the last artboard in a document.

ParameterTypeDescription
indexNumber (long)Index of artboard to remove

Nothing.


artboards.setActiveArtboardIndex(index)

Makes a specific artboard active and makes it current in the iteration order.

ParameterTypeDescription
indexNumber (long)Index of artboard to set active

Nothing.