InDesign Server2025
API 20.5.0.49
Collection of Line

Lines

A collection of lines.

Properties

NameType AccessDescription
Number readonly The number of objects in the collection.

Methods

→ Line

Returns the Line with the specified index.

index Number The index.
→ Line

Returns any Line in the collection.

→ Number

Displays the number of elements in the Line.

→ Line[]

Returns every Line in the collection.

→ Line

Returns the first Line in the collection.

→ Line

Returns the Line with the specified index or name.

index LongInteger | String The index or name. Can accept: Long Integer or String.
→ Line[]

Returns the Lines within the specified range.

from Line | LongInteger | String The Line, index, or name at the beginning of the range. Can accept: Line, Long Integer or String.
to Line | LongInteger | String The Line, index, or name at the end of the range. Can accept: Line, Long Integer or String.
→ Line

Returns the last Line in the collection.

→ Line

Returns the middle Line in the collection.

→ Line

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

obj Line The Line whose index comes before the desired Line.
→ Line

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

obj Line The index of the Line that follows the desired Line.
→ String

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

Object of 20

Properties elsewhere that hold a Lines.