Class
Margin preferences. Base Class: Preference
addEventListener, getElements, removeEventListener, toSource, toSpecifier
MarginPreference
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
bottom | Measurement Unit (Number or String) | r/w | The bottom edge of the MarginPreference. |
columnCount | number (range: 1 - 216) | r/w | The number of columns to place on the page. |
columnDirection | HorizontalOrVertical: HorizontalOrVertical.HORIZONTAL HorizontalOrVertical.VERTICAL |
r/w | The direction of text in the column. |
columnGutter | Measurement Unit (Number or String) (range: 0 - 1440) | r/w | The distance between columns. |
columnsPositions | Array of Measurement Unit (Number or String) | r/w | The distance that each column guide is placed from the left margin, formatted as an array in the format [guide1, guide2, guide3]. |
customColumns | bool | readonly | If false, columns are evenly spaced. If true, columns can have custom widths. |
eventListeners | EventListeners EventListener | readonly | A collection of event listeners. |
events | Events Event | readonly | A collection of events. |
isValid | bool | readonly | Returns true if the object specifier resolves to valid objects. |
left | Measurement Unit (Number or String) | r/w | The left edge of the MarginPreference. |
parent | Application Document Page |
readonly | The parent of the MarginPreference (a Application, Document or Page). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
right | Measurement Unit (Number or String) | r/w | The right edge of the MarginPreference. |
top | Measurement Unit (Number or String) | r/w | The top edge of the MarginPreference. |
Methods
Instances
EventListener addEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Adds an event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The event type. |
handler | File JavaScript Function | The event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
Array
of MarginPreference getElements ()
Resolves the object specifier, creating an array of object references.
bool removeEventListener (eventType:
string, handler:
varies[, captures:
bool=false])
Removes the event listener.
Parameter | Type | Description |
---|---|---|
eventType | string | The registered event type. |
handler | File JavaScript Function | The registered event handler. Can accept: File or JavaScript Function. |
captures | bool | This parameter is obsolete. (Optional) (default: false) |
string toSource ()
Generates a string which, if executed, will return the MarginPreference.
Element of
Application.marginPreferences
Document.marginPreferences
Page.marginPreferences
Return
Array of MarginPreference MarginPreference.getElements ()
Jongware, 29-Apr-2012 v3.0.3i | Contents :: Index |