Lines

A collection of lines.

Methods:

[], anyItem, count, everyItem, firstItem, item, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Line [] (index:Number)

Returns the Line with the specified index.

Parameter

Type

Description

index

Number

The index.

Line anyItem ()

Returns any Line in the collection.

Number count ()

Displays the number of elements in the Line.

Line everyItem ()

Returns every Line in the collection.

Line firstItem ()

Returns the first Line in the collection.

Line item (index:Varies LongInteger String)

Returns the Line with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

Line itemByRange (from:Varies Line LongInteger String, to:Varies Line LongInteger String)

Returns the Lines within the specified range.

Parameter

Type

Description

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 lastItem ()

Returns the last Line in the collection.

Line middleItem ()

Returns the middle Line in the collection.

Line nextItem (obj:Line)

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

Parameter

Type

Description

obj

Line

The Line whose index comes before the desired Line.

Line previousItem (obj:Line)

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

Parameter

Type

Description

obj

Line

The index of the Line that follows the desired Line.

String toSource ()

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

Object of

Cell.lines

Text.lines

Character.lines

Word.lines

Line.lines

TextColumn.lines

Paragraph.lines

TextStyleRange.lines

InsertionPoint.lines

TextFrame.lines

Story.lines

Endnote.lines

EndnoteTextFrame.lines

Change.lines

TextPath.lines

Note.lines

Footnote.lines

HiddenText.lines

XMLElement.lines

XmlStory.lines