Topics

A collection of index topics.

Methods:

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

Property Listing

Property

Type

Access

Description

length

Number

readonly

The number of objects in the collection.

Method Listing

Topic [] (index:Number)

Returns the Topic with the specified index.

Parameter

Type

Description

index

Number

The index.

Topic add (name:String, sortBy:String, withProperties:Object)

Creates a new index topic.

Parameter

Type

Description

name

String

The name of the topic. Note: This is the text that appears in the index.

sortBy

String

The string to sort this topic by instead of the topic name. Note: The actual topic text, rather than the sort order text, appears in the index. (Optional)

withProperties

Object

Initial values for properties of the new Topic (Optional)

Topic anyItem ()

Returns any Topic in the collection.

Number count ()

Displays the number of elements in the Topic.

Topic everyItem ()

Returns every Topic in the collection.

Topic firstItem ()

Returns the first Topic in the collection.

Topic item (index:Varies LongInteger String)

Returns the Topic with the specified index or name.

Parameter

Type

Description

index

LongInteger

String

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

Topic itemByName (name:String)

Returns the Topic with the specified name.

Parameter

Type

Description

name

String

The name.

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

Returns the Topics within the specified range.

Parameter

Type

Description

from

LongInteger

Topic

String

The Topic, index, or name at the beginning of the range. Can accept: Topic, Long Integer or String.

to

LongInteger

Topic

String

The Topic, index, or name at the end of the range. Can accept: Topic, Long Integer or String.

Topic lastItem ()

Returns the last Topic in the collection.

Topic middleItem ()

Returns the middle Topic in the collection.

Topic nextItem (obj:Topic)

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

Parameter

Type

Description

obj

Topic

The Topic whose index comes before the desired Topic.

Topic previousItem (obj:Topic)

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

Parameter

Type

Description

obj

Topic

The index of the Topic that follows the desired Topic.

String toSource ()

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

Object of

Index.topics

Topic.topics

IndexSection.topics