Buttons
A collection of buttons.
Go to Property Listing | Method Listing
Methods:
[], add, anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The number of objects in the collection. |
Method Listing
Button [] (index:Number)
Returns the Button with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
The index. |
Button add (layer:Layer, [at:LocationOptions=LocationOptions], reference:Varies Document Layer MasterSpread Page Spread PageItem, withProperties:Object)
Creates a new Button
Parameter |
Type |
Description |
---|---|---|
layer |
The layer on which to create the Button. (Optional) |
|
at |
The location at which to insert the Button relative to the reference object or within the container object. (Optional) (default: LocationOptions.UNKNOWN) |
|
reference |
The reference object. Note: Required when the at parameter is before or after. Can accept: Document, Spread, MasterSpread, Page, Layer or PageItem. (Optional) |
|
withProperties |
Initial values for properties of the new Button (Optional) |
Button anyItem ()
Returns any Button in the collection.
Number count ()
Displays the number of elements in the Button.
Button everyItem ()
Returns every Button in the collection.
Button firstItem ()
Returns the first Button in the collection.
Button item (index:Varies LongInteger String)
Returns the Button with the specified index or name.
Parameter |
Type |
Description |
---|---|---|
index |
LongInteger |
The index or name. Can accept: Long Integer or String. |
Button itemByID (id:Number)
Returns the Button with the specified ID.
Parameter |
Type |
Description |
---|---|---|
id |
The ID. |
Button itemByName (name:String)
Returns the Button with the specified name.
Parameter |
Type |
Description |
---|---|---|
name |
The name. |
Button itemByRange (from:Varies Button LongInteger String, to:Varies Button LongInteger String)
Returns the Buttons within the specified range.
Parameter |
Type |
Description |
---|---|---|
from |
LongInteger |
The Button, index, or name at the beginning of the range. Can accept: Button, Long Integer or String. |
to |
LongInteger |
The Button, index, or name at the end of the range. Can accept: Button, Long Integer or String. |
Button lastItem ()
Returns the last Button in the collection.
Button middleItem ()
Returns the middle Button in the collection.
Button nextItem (obj:Button)
Returns the Button whose index follows the specified Button in the collection.
Parameter |
Type |
Description |
---|---|---|
obj |
The Button whose index comes before the desired Button. |
Button previousItem (obj:Button)
Returns the Button with the index previous to the specified index.
Parameter |
Type |
Description |
---|---|---|
obj |
The index of the Button that follows the desired Button. |
String toSource ()
Generates a string which, if executed, will return the Button.
Object of
PlaceGun.buttons
Document.buttons
Layer.buttons
Spread.buttons
Page.buttons
MasterSpread.buttons
Oval.buttons
Rectangle.buttons
GraphicLine.buttons
Polygon.buttons
Group.buttons
SplineItem.buttons
Snippet.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
EndnoteTextFrame.buttons
XmlStory.buttons