TableStyleMappings

A collection of table style mappings.

Methods:

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

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

TableStyleMapping [] (index:Number)

Returns the TableStyleMapping with the specified index.

Parameter

Type

Description

index

Number

The index.

TableStyleMapping add (sourceStyleName:String, destinationStyleName:String, mappingRuleType:MapType, withProperties:Object)

Adds a style mapping.

Parameter

Type

Description

sourceStyleName

String

The source style name.

destinationStyleName

String

The destination style name.

mappingRuleType

MapType

MapType.GROUP_MAPPING_RULE

MapType.GROUP_TO_STYLE_MAPPING_RULE

MapType.STYLE_MAPPING_RULE

MapType.STYLE_TO_GROUP_MAPPING_RULE

The mapping type

withProperties

Object

Initial 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.

TableStyleMapping everyItem ()

Returns every TableStyleMapping in the collection.

TableStyleMapping firstItem ()

Returns the first TableStyleMapping in the collection.

TableStyleMapping item (index:Varies LongInteger String)

Returns the TableStyleMapping with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

TableStyleMapping itemByRange (from:Varies LongInteger TableStyleMapping String, to:Varies LongInteger TableStyleMapping String)

Returns the TableStyleMappings within the specified range.

Parameter

Type

Description

from

LongInteger

TableStyleMapping

String

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

to

LongInteger

TableStyleMapping

String

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.

Parameter

Type

Description

obj

TableStyleMapping

The TableStyleMapping whose index comes before the desired TableStyleMapping.

TableStyleMapping previousItem (obj:TableStyleMapping)

Returns the TableStyleMapping with the index previous to the specified index.

Parameter

Type

Description

obj

TableStyleMapping

The index of the TableStyleMapping that follows the desired TableStyleMapping.

String toSource ()

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

Object of

Application.tableStyleMappings

Document.tableStyleMappings

Story.tableStyleMappings

XmlStory.tableStyleMappings