ObjectStyles

A collection of object styles.

Methods

ObjectStyleadd ([withProperties:
Object])
Creates a new ObjectStyle.

Parameter Type Description
withProperties Object Initial values for properties of the new ObjectStyle (Optional)

ObjectStyleanyItem ()
Returns any ObjectStyle in the collection.

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

Array of ObjectStyleeveryItem ()
Returns every ObjectStyle in the collection.

ObjectStylefirstItem ()
Returns the first ObjectStyle in the collection.

ObjectStyleitem (index:
any)
Returns the ObjectStyle with the specified index or name.

Parameter Type Description
index Long Integer
String
The index or name. Can accept: Long Integer or String.

ObjectStyleitemByID (id:
number)
Returns the ObjectStyle with the specified ID.

Parameter Type Description
id number The ID.

ObjectStyleitemByName (name:
string)
Returns the ObjectStyle with the specified name.

Parameter Type Description
name string The name.

Array of ObjectStyleitemByRange (from:
any, to:
any)
Returns the ObjectStyles within the specified range.

Parameter Type Description
from ObjectStyle
Long Integer
String
The ObjectStyle, index, or name at the beginning of the range. Can accept: ObjectStyle, Long Integer or String.
to ObjectStyle
Long Integer
String
The ObjectStyle, index, or name at the end of the range. Can accept: ObjectStyle, Long Integer or String.

ObjectStylelastItem ()
Returns the last ObjectStyle in the collection.

ObjectStylemiddleItem ()
Returns the middle ObjectStyle in the collection.

ObjectStylenextItem (obj:
ObjectStyle)
Returns the ObjectStyle whose index follows the specified ObjectStyle in the collection.

Parameter Type Description
obj ObjectStyle The ObjectStyle whose index comes before the desired ObjectStyle.

ObjectStylepreviousItem (obj:
ObjectStyle)
Returns the ObjectStyle with the index previous to the specified index.

Parameter Type Description
obj ObjectStyle The index of the ObjectStyle that follows the desired ObjectStyle.

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

Element of:

Application.objectStyles
Document.objectStyles
ObjectStyleGroup.objectStyles

Leave a Comment

Previous post:

Next post: