Adobe InCopy CS6 (8.0) Object Model JS: Polygons

InCopy CS6

Class

Polygons

 A collection of polygons.

See also Polygon.

QuickLinks

[], anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

Polygon [] (index: number)
Returns the Polygon with the specified index.

ParameterTypeDescription
indexnumberThe index.

Polygon anyItem ()
Returns any Polygon in the collection.

number count ()
Displays the number of elements in the Polygon.

Array of Polygon everyItem ()
Returns every Polygon in the collection.

Polygon firstItem ()
Returns the first Polygon in the collection.

Polygon item (index: varies)
Returns the Polygon with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer or String.

Polygon itemByID (id: number)
Returns the Polygon with the specified ID.

ParameterTypeDescription
idnumberThe ID.

Polygon itemByName (name: string)
Returns the Polygon with the specified name.

ParameterTypeDescription
namestringThe name.

Array of Polygon itemByRange (from: varies, to: varies)
Returns the Polygons within the specified range.

ParameterTypeDescription
fromLong Integer
Polygon
String
The Polygon, index, or name at the beginning of the range. Can accept: Polygon, Long Integer or String.
toLong Integer
Polygon
String
The Polygon, index, or name at the end of the range. Can accept: Polygon, Long Integer or String.

Polygon lastItem ()
Returns the last Polygon in the collection.

Polygon middleItem ()
Returns the middle Polygon in the collection.

Polygon nextItem (obj: Polygon)
Returns the Polygon whose index follows the specified Polygon in the collection.

ParameterTypeDescription
objPolygonThe Polygon whose index comes before the desired Polygon.

Polygon previousItem (obj: Polygon)
Returns the Polygon with the index previous to the specified index.

ParameterTypeDescription
objPolygonThe index of the Polygon that follows the desired Polygon.

string toSource ()
Generates a string which, if executed, will return the Polygon.

Element of

Button.polygons

Cell.polygons

Character.polygons

CheckBox.polygons

ComboBox.polygons

Document.polygons

Footnote.polygons

GraphicLine.polygons

Group.polygons

InsertionPoint.polygons

Layer.polygons

Line.polygons

ListBox.polygons

MasterSpread.polygons

MultiStateObject.polygons

Oval.polygons

Page.polygons

Paragraph.polygons

PlaceGun.polygons

Polygon.polygons

RadioButton.polygons

Rectangle.polygons

SignatureField.polygons

SplineItem.polygons

Spread.polygons

State.polygons

Story.polygons

Table.polygons

Text.polygons

TextBox.polygons

TextColumn.polygons

TextFrame.polygons

TextStyleRange.polygons

Word.polygons

XmlStory.polygons

Jongware, 29-Apr-2012 v3.0.3iContents :: Index