Adobe InDesign CS5.5 Server (7.5) Object Model JS: ArticleMembers

InDesign Server CS5.5

Class

ArticleMembers

 A collection of article members.

See also ArticleMember.

QuickLinks

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

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

ArticleMember [] (index: number)
Returns the ArticleMember with the specified index.

ParameterTypeDescription
indexnumberThe index.

ArticleMember add (itemRef: PageItem[, at: LocationOptions=LocationOptions.AT_END][, reference: ArticleMember][, withProperties: Object])
Adds a new member.

ParameterTypeDescription
itemRefPageItempage item to be added to article
atLocationOptions:
LocationOptions.BEFORE
LocationOptions.AFTER
LocationOptions.AT_END
LocationOptions.AT_BEGINNING
LocationOptions.UNKNOWN
The location relative to the reference object or within the containing object. (Optional) (default: LocationOptions.AT_END)
referenceArticleMemberThe reference object. Note: Required when the to value specifies before or after. (Optional)
withPropertiesObjectInitial values for properties of the new ArticleMember (Optional)

ArticleMember anyItem ()
Returns any ArticleMember in the collection.

number count ()
Displays the number of elements in the ArticleMember.

Array of ArticleMember everyItem ()
Returns every ArticleMember in the collection.

ArticleMember firstItem ()
Returns the first ArticleMember in the collection.

ArticleMember item (index: varies)
Returns the ArticleMember with the specified index or name.

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

ArticleMember itemByID (id: number)
Returns the ArticleMember with the specified ID.

ParameterTypeDescription
idnumberThe ID.

Array of ArticleMember itemByRange (from: varies, to: varies)
Returns the ArticleMembers within the specified range.

ParameterTypeDescription
fromArticleMember
Long Integer
String
The ArticleMember, index, or name at the beginning of the range. Can accept: ArticleMember, Long Integer or String.
toArticleMember
Long Integer
String
The ArticleMember, index, or name at the end of the range. Can accept: ArticleMember, Long Integer or String.

ArticleMember lastItem ()
Returns the last ArticleMember in the collection.

ArticleMember middleItem ()
Returns the middle ArticleMember in the collection.

ArticleMember nextItem (obj: ArticleMember)
Returns the ArticleMember whose index follows the specified ArticleMember in the collection.

ParameterTypeDescription
objArticleMemberThe ArticleMember whose index comes before the desired ArticleMember.

ArticleMember previousItem (obj: ArticleMember)
Returns the ArticleMember with the index previous to the specified index.

ParameterTypeDescription
objArticleMemberThe index of the ArticleMember that follows the desired ArticleMember.

string toSource ()
Generates a string which, if executed, will return the ArticleMember.

Element of

Article.articleMembers

Jongware, 28-Apr-2012 v3.0.3iContents :: Index