Typefi section definition
Go to Property Listing | Method Listing
addEventListener, appliedMasterAt, appliedMastersLength, applyMaster, extractLabel, getElements, insertLabel, modifyMasterAt, remove, removeEventListener, toSource, toSpecifier
Boolean, EventListeners, Events, Number, Object, PageNumberStyle, String, TypefiResetType, TypefiSectionType,
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
The unique ID of the TypefiSectionDefinition. |
||
readonly |
The index of the TypefiSectionDefinition within its containing object. |
||
read/write |
Indicate whether sections of this type are repeating the last masters entry |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
read/write |
A property that can be set to any string. |
||
Array of Strings Array of TypefiFieldDefinitions(0-3) |
read/write |
Section marker. Can return: Array of Strings or TypefiFieldDefinitions (0 - 3). |
|
read/write |
Section marker string |
||
read/write |
The name of the TypefiSectionDefinition. |
||
read/write |
The page number style. Can return: PageNumberStyle enumerator or String. |
||
readonly |
The parent of the TypefiSectionDefinition (a Document). |
||
read/write |
A property that allows setting of several properties at the same time. |
||
read/write |
Define the way the section handles the reset of the page number on section start |
||
Array of Strings Array of TypefiFieldDefinitions(0-3) |
read/write |
Section prefix. Can return: Array of Strings or TypefiFieldDefinitions (0 - 3). |
|
read/write |
Section prefix string |
||
read/write |
The section type |
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String appliedMasterAt (index:Number)
Returns an array of strings for the applied master at passed index
Parameter |
Type |
Description |
---|---|---|
index |
Index |
Number appliedMastersLength ()
Returns number of applied masters in a section
undefined applyMaster (master:MasterSpread, typefiStartsOnType:TypefiPageType, useAllPages:Boolean, filler:MasterSpread)
Adds master to section
Parameter |
Type |
Description |
---|---|---|
master |
Master |
|
typefiStartsOnType |
Values for Typefi starts on types |
|
useAllPages |
Specify whether to use all master spread pages |
|
filler |
Filler (Optional) |
String extractLabel (key:String)
Gets the label value associated with the specified key.
Parameter |
Type |
Description |
---|---|---|
key |
The key. |
TypefiSectionDefinition getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined modifyMasterAt (index:Number, master:MasterSpread, typefiStartsOnType:TypefiPageType, useAllPages:Boolean, filler:MasterSpread)
Modifies the master associated at Index
Parameter |
Type |
Description |
---|---|---|
index |
Index |
|
master |
Master |
|
typefiStartsOnType |
Values for Typefi starts on types |
|
useAllPages |
Specify whether to use all master spread pages |
|
filler |
Filler (Optional) |
undefined remove ()
Deletes the TypefiSectionDefinition.
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the TypefiSectionDefinition.
String toSpecifier ()
Retrieves the object specifier.
TypefiSectionDefinitions.add()
TypefiSectionDefinition.getElements()
TypefiSectionDefinitions.anyItem()
TypefiSectionDefinitions.everyItem()
TypefiSectionDefinitions.nextItem()
TypefiSectionDefinitions.previousItem()
TypefiSectionDefinitions.itemByID()
TypefiSectionDefinitions.item()
TypefiSectionDefinitions.itemByName()
TypefiSectionDefinitions.itemByRange()
TypefiSectionDefinitions.firstItem()