AutofitAutoResize

AutoFit auto-resize related values

Methods:

addEventListener, exist, getElements, isActive, removeEventListener, resetAllToDefaults, set, toSource, toSpecifier

Objects:

AutoResizeType, AutofitLimitType, Boolean, EventListeners, Events, Object,

Hierarchy:

Superclass: Preference

Class: AutofitAutoResize

Property Listing

Property

Type

Access

Description

balanceMulticolumnFrames

Boolean

read/write

Determine whether multi-column frames should be balanced ('true' by default)

enabled

Boolean

read/write

Determine whether auto-resize of AutoFit is enabled ('true' by default)

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

maximumVerticalGap

Real

AutofitLimitType

AutofitLimitType.CURRENT_VALUE

AutofitLimitType.NO_LIMIT

read/write

The maximum vertical gap. Can return: Real or AutofitLimitType enumerator.

parent

AutofitPageItemSettings

readonly

The parent of the AutofitAutoResize (a AutofitPageItemSettings).

properties

Object

read/write

A property that allows setting of several properties at the same time.

resizeFrom

AutoResizeType

AutoResizeType.AUTOFIT

AutoResizeType.BOTTOM_EDGE

AutoResizeType.HEIGHT_AND_WIDTH

AutoResizeType.HEIGHT_AND_WIDTH_PROPORTIONALLY

AutoResizeType.HEIGHT_ONLY

AutoResizeType.HORIZONTAL_CENTER

AutoResizeType.LEFT_EDGE

AutoResizeType.NOWHERE

AutoResizeType.RIGHT_EDGE

AutoResizeType.TOP_EDGE

AutoResizeType.VERTICAL_CENTER

AutoResizeType.WIDTH_ONLY

read/write

AutoFit auto-resize values

Method Listing

EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Adds an event listener.

Parameter

Type

Description

eventType

String

The event type.

handler

File

JavaScriptFunction

The event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

Boolean exist ()

Test whether the AutoFit specific data of AutofitAutoResize specifies relevant values at all

AutofitAutoResize getElements ()

Resolves the object specifier, creating an array of object references.

Boolean isActive ()

Test whether AutofitAutoResize is active in terms of AutoFit

Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])

Removes the event listener.

Parameter

Type

Description

eventType

String

The registered event type.

handler

File

JavaScriptFunction

The registered event handler. Can accept: File or JavaScript Function.

captures

Boolean

This parameter is obsolete. (Optional)

(default: false)

undefined resetAllToDefaults ()

Reset the AutoFit specific data of AutofitAutoResize to the default values

undefined set (resizeFrom:AutoResizeType, [maximumVerticalGap:Varies Real AutofitLimitType=Varies Real AutofitLimitType], enabled:Boolean, balanceMulticolumnFrames:Boolean)

Set the values related to auto-resize at once

Parameter

Type

Description

resizeFrom

AutoResizeType

AutoResizeType.AUTOFIT

AutoResizeType.BOTTOM_EDGE

AutoResizeType.HEIGHT_AND_WIDTH

AutoResizeType.HEIGHT_AND_WIDTH_PROPORTIONALLY

AutoResizeType.HEIGHT_ONLY

AutoResizeType.HORIZONTAL_CENTER

AutoResizeType.LEFT_EDGE

AutoResizeType.NOWHERE

AutoResizeType.RIGHT_EDGE

AutoResizeType.TOP_EDGE

AutoResizeType.VERTICAL_CENTER

AutoResizeType.WIDTH_ONLY

AutoFit auto-resize value

maximumVerticalGap

Real

AutofitLimitType

AutofitLimitType.CURRENT_VALUE

AutofitLimitType.NO_LIMIT

The maximum vertical gap. Can accept: Real or AutofitLimitType enumerator. (Optional)

(default: AutofitLimitType.NO_LIMIT)

enabled

Boolean

Determine if auto-resize is enabled (Optional)

balanceMulticolumnFrames

Boolean

Determine if multi-column frames should be balanced (Optional)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

AutofitPageItemSettings.autoResize

Event.parent

EventListener.parent

MutationEvent.parent

Return

AutofitAutoResize.getElements()