Edit in GitHubLog an issue

ParaStyleMappings

A collection of para style mappings.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

ParaStyleMapping add( String sourceStyleName, String destinationStyleName, MapType mappingRuleType, Object withProperties )

Adds a style mapping.

Parameters

TypeNameDescription
String
sourceStyleName
The source style name.
String
destinationStyleName
The destination style name.
MapType
mappingRuleType
The mapping type
Object
withProperties
Initial values for properties of the new ParaStyleMapping (Optional)

Number count()

Displays the number of elements in the ParaStyleMapping.


ParaStyleMapping item( Mixed index )

Returns the ParaStyleMapping with the specified index or name.

Parameters

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

ParaStyleMapping itemByRange( Mixed from, Mixed to )

Returns the ParaStyleMappings within the specified range.

Parameters

TypeNameDescription
Mixed
from
The ParaStyleMapping, index, or name at the beginning of the range. Can accept: ParaStyleMapping, Long Integer or String.
Mixed
to
The ParaStyleMapping, index, or name at the end of the range. Can accept: ParaStyleMapping, Long Integer or String.

ParaStyleMapping firstItem()

Returns the first ParaStyleMapping in the collection.


ParaStyleMapping lastItem()

Returns the last ParaStyleMapping in the collection.


ParaStyleMapping middleItem()

Returns the middle ParaStyleMapping in the collection.


ParaStyleMapping previousItem( ParaStyleMapping obj )

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

Parameters

TypeNameDescription
ParaStyleMapping
obj
The index of the ParaStyleMapping that follows the desired ParaStyleMapping.

ParaStyleMapping nextItem( ParaStyleMapping obj )

Returns the ParaStyleMapping whose index follows the specified ParaStyleMapping in the collection.

Parameters

TypeNameDescription
ParaStyleMapping
obj
The ParaStyleMapping whose index comes before the desired ParaStyleMapping.

ParaStyleMapping anyItem()

Returns any ParaStyleMapping in the collection.


ParaStyleMapping everyItem()

Returns every ParaStyleMapping in the collection.


String toSource()

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


ParaStyleMapping []( Number index )

Returns the ParaStyleMapping with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.