Adobe InCopy CS5.5 (7.5) Object Model JS: TableStyles

InCopy CS5.5

Class

TableStyles

 A collection of table styles.

See also TableStyle.

QuickLinks

[], add, 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

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

ParameterTypeDescription
indexnumberThe index.

TableStyle add ([withProperties: Object])
Creates a new TableStyle.

ParameterTypeDescription
withPropertiesObjectInitial values for properties of the new TableStyle (Optional)

TableStyle anyItem ()
Returns any TableStyle in the collection.

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

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

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

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

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

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

ParameterTypeDescription
idnumberThe ID.

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

ParameterTypeDescription
namestringThe name.

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

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

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

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

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

ParameterTypeDescription
objTableStyleThe TableStyle whose index comes before the desired TableStyle.

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

ParameterTypeDescription
objTableStyleThe index of the TableStyle that follows the desired TableStyle.

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

Element of

Application.tableStyles

Document.tableStyles

TableStyleGroup.tableStyles

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