Class

CellStyleMappings

 A collection of cell style mappings.

See also CellStyleMapping.

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

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

ParameterTypeDescription
indexnumberThe index.

CellStyleMapping 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 CellStyleMapping (Optional)

CellStyleMapping anyItem ()
Returns any CellStyleMapping in the collection.

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

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

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

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

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

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

ParameterTypeDescription
fromCellStyleMapping
Long Integer
String
The CellStyleMapping, index, or name at the beginning of the range. Can accept: CellStyleMapping, Long Integer or String.
toCellStyleMapping
Long Integer
String
The CellStyleMapping, index, or name at the end of the range. Can accept: CellStyleMapping, Long Integer or String.

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

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

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

ParameterTypeDescription
objCellStyleMappingThe CellStyleMapping whose index comes before the desired CellStyleMapping.

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

ParameterTypeDescription
objCellStyleMappingThe index of the CellStyleMapping that follows the desired CellStyleMapping.

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

Element of

Application.cellStyleMappings

Document.cellStyleMappings

Story.cellStyleMappings

XmlStory.cellStyleMappings

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