Edit in GitHubLog an issue

Sections

A collection of sections.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the Section.


Section add( Page reference, Object withProperties )

Creates a new section.

Parameters

TypeNameDescription
Page
reference
The page on which the section begins. (Optional)
Object
withProperties
Initial values for properties of the new Section (Optional)

Section item( Mixed index )

Returns the Section with the specified index or name.

Parameters

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

Section itemByName( String name )

Returns the Section with the specified name.

Parameters

TypeNameDescription
String
name
The name.

Section itemByID( Number id )

Returns the Section with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

Section itemByRange( Mixed from, Mixed to )

Returns the Sections within the specified range.

Parameters

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

Section firstItem()

Returns the first Section in the collection.


Section lastItem()

Returns the last Section in the collection.


Section middleItem()

Returns the middle Section in the collection.


Section previousItem( Section obj )

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

Parameters

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

Section nextItem( Section obj )

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

Parameters

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

Section anyItem()

Returns any Section in the collection.


Section everyItem()

Returns every Section in the collection.


String toSource()

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


Section []( Number index )

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