A collection of layout sections.
Methods
Sectionadd ([reference:
Page][, withProperties:
Object])
Creates a new section.
| Parameter | Type | Description |
|---|---|---|
| reference | Page | The page on which the section begins. (Optional) |
| withProperties | Object | Initial values for properties of the new Section (Optional) |
SectionanyItem ()
Returns any Section in the collection.
number count ()
Displays the number of elements in the Section.
Array of SectioneveryItem ()
Returns every Section in the collection.
SectionfirstItem ()
Returns the first Section in the collection.
Sectionitem (index:
any)
Returns the Section with the specified index or name.
| Parameter | Type | Description |
|---|---|---|
| index | Long Integer String |
The index or name. Can accept: Long Integer or String. |
SectionitemByID (id:
number)
Returns the Section with the specified ID.
| Parameter | Type | Description |
|---|---|---|
| id | number | The ID. |
SectionitemByName (name:
string)
Returns the Section with the specified name.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name. |
Array of SectionitemByRange (from:
any, to:
any)
Returns the Sections within the specified range.
| Parameter | Type | Description |
|---|---|---|
| from | Section Long Integer String |
The Section, index, or name at the beginning of the range. Can accept: Section, Long Integer or String. |
| to | Section Long Integer String |
The Section, index, or name at the end of the range. Can accept: Section, Long Integer or String. |
SectionlastItem ()
Returns the last Section in the collection.
SectionmiddleItem ()
Returns the middle Section in the collection.
SectionnextItem (obj:
Section)
Returns the Section whose index follows the specified Section in the collection.
| Parameter | Type | Description |
|---|---|---|
| obj | Section | The Section whose index comes before the desired Section. |
SectionpreviousItem (obj:
Section)
Returns the Section with the index previous to the specified index.
| Parameter | Type | Description |
|---|---|---|
| obj | Section | The index of the Section that follows the desired Section. |
string toSource ()
Generates a string which, if executed, will return the Section.
Element of:
Document.sections