Section

A section.

Methods:

extractLabel, getElements, insertLabel, remove, toSource, toSpecifier

Objects:

Boolean, Number, Object, Page, PageNumberStyle, String

Property Listing

Property

Type

Access

Description

continueNumbering

Boolean

read/write

If true, continues page numbers sequentially from the previous section.

id

Number

readonly

The unique ID of the Section.

includeSectionPrefix

Boolean

read/write

If true, places the specified prefix before page numbers on all pages in the section.

index

Number

readonly

The index of the Section within its containing object.

label

String

read/write

A property that can be set to any string.

length

Number

readonly

The number of pages in the section.

marker

String

read/write

The section marker.

name

String

read/write

The name of the Section.

pageNumberStart

Number (range 1 - 999999)

read/write

The page number assigned to the first page in the section. Note: Valid only when continue numbering is false.

pageNumberStyle

PageNumberStyle

PageNumberStyle.ARABIC

PageNumberStyle.LOWER_LETTERS

PageNumberStyle.LOWER_ROMAN

PageNumberStyle.UPPER_LETTERS

PageNumberStyle.UPPER_ROMAN

read/write

The page number style.

pageStart

Page

read/write

The start page for the section.

parent

Document

readonly

The parent of the Section (a Document).

properties

Object

read/write

A property that allows setting of several properties at the same time.

sectionPrefix

String

read/write

The prefix to place before page numbers on pages in the section. May include up to 8 characters. Note: Valid only when include section prefix is true.

Method Listing

String extractLabel (key:String)

Gets the label value associated with the specified key.

Parameter

Type

Description

key

String

The key.

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

Parameter

Type

Description

key

String

The key.

value

String

The value.

undefined remove ()

Deletes the Section.

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Page.appliedSection

Return

Sections.add()

Section.getElements()

Sections.anyItem()

Sections.everyItem()

Sections.nextItem()

Sections.previousItem()

Sections.itemByID()

Sections.item()

Sections.itemByName()

Sections.itemByRange()

Sections.firstItem()

Sections.lastItem()

Sections.middleItem()