Buttons

A collection of buttons.

Methods:

add, count

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Button add (layer:Layer, [at:LocationOptions=LocationOptions], reference:Varies Document MasterSpread Page Spread Layer, withProperties:Object)

Create a new Button

Parameter

Type

Description

layer

Layer

The layer on which to create the Button. (Optional)

at

LocationOptions

LocationOptions.AFTER

LocationOptions.AT_BEGINNING

LocationOptions.AT_END

LocationOptions.BEFORE

LocationOptions.UNKNOWN

Location (Optional)

(default: LocationOptions.UNKNOWN)

reference

Document

MasterSpread

Page

Spread

Layer

Before/after this Button or at the beginning/end of this Document, Spread, Master Spread, Page or Layer. Can accept: Document, Spread, MasterSpread, Page or Layer. (Optional)

withProperties

Object

Initial values for properties of the new Button (Optional)

Number count ()

Displays the number of elements in the Button.

Object of

Document.buttons

Layer.buttons

Spread.buttons

Page.buttons

MasterSpread.buttons

Group.buttons

Cell.buttons

Table.buttons

Text.buttons

Character.buttons

Word.buttons

Line.buttons

TextColumn.buttons

Paragraph.buttons

TextStyleRange.buttons

InsertionPoint.buttons

TextFrame.buttons

Story.buttons