Adobe InDesign CS6 (8.0) Object Model JS: TableStyleMappings

InDesign CS6

Class

TableStyleMappings

 A collection of table style mappings.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

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

ParameterTypeDescription
indexnumberThe index.

TableStyleMapping add (sourceStyleName: string, destinationStyleName: string, mappingRuleType: MapType[, withProperties: Object])
Adds a style mapping.

ParameterTypeDescription
sourceStyleNamestringThe source style name.
destinationStyleNamestringThe destination style name.
mappingRuleTypeMapType:
MapType.STYLE_MAPPING_RULE
MapType.GROUP_MAPPING_RULE
MapType.STYLE_TO_GROUP_MAPPING_RULE
MapType.GROUP_TO_STYLE_MAPPING_RULE
The mapping type
withPropertiesObjectInitial values for properties of the new TableStyleMapping (Optional)

TableStyleMapping anyItem ()
Returns any TableStyleMapping in the collection.

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

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

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

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

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

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

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

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

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

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

ParameterTypeDescription
objTableStyleMappingThe TableStyleMapping whose index comes before the desired TableStyleMapping.

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

ParameterTypeDescription
objTableStyleMappingThe index of the TableStyleMapping that follows the desired TableStyleMapping.

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

Element of

Application.tableStyleMappings

Document.tableStyleMappings

Story.tableStyleMappings

XmlStory.tableStyleMappings

Jongware, 28-Apr-2012 v3.0.3hContents :: Index