AutofitPageItemSettings

AutoFit settings on the page item level

Methods:

addEventListener, dimensions, exist, getElements, height, isActive, removeEventListener, resetAllToDefaults, toSource, toSpecifier, width

Hierarchy:

Superclass: Preference

Class: AutofitPageItemSettings

Property Listing

Property

Type

Access

Description

anchorPoint

AutofitReferencePoint

AutofitReferencePoint.BOTTOM_CENTER_ANCHOR

AutofitReferencePoint.BOTTOM_LEFT_ANCHOR

AutofitReferencePoint.BOTTOM_RIGHT_ANCHOR

AutofitReferencePoint.CENTER_ANCHOR

AutofitReferencePoint.CURRENT_VALUE

AutofitReferencePoint.DEFAULT_VALUE

AutofitReferencePoint.LEFT_CENTER_ANCHOR

AutofitReferencePoint.RIGHT_CENTER_ANCHOR

AutofitReferencePoint.TOP_CENTER_ANCHOR

AutofitReferencePoint.TOP_LEFT_ANCHOR

AutofitReferencePoint.TOP_RIGHT_ANCHOR

read/write

The optional local reference point

autoResize

AutofitAutoResize

readonly

Allow to handle the AutoFit auto-resize item object as property

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.

limits

AutofitLimits

readonly

Allow to handle the AutoFit limits item object as property

parent

Button

CheckBox

ComboBox

EPS

EPSText

EndnoteTextFrame

FormField

Graphic

GraphicLine

Group

HtmlItem

Image

ImportedPage

ListBox

MediaItem

Movie

MultiStateObject

Oval

PDF

PICT

Polygon

RadioButton

Rectangle

SignatureField

Sound

SplineItem

TextBox

TextFrame

WMF

PageItem

TextPath

readonly

The parent of the AutofitPageItemSettings (a PageItem, HtmlItem, FormField, SignatureField, TextBox, RadioButton, ListBox, ComboBox, CheckBox, MultiStateObject, Button, MediaItem, Sound, Movie, EPSText, SplineItem, Polygon, GraphicLine, Rectangle, Oval, Graphic, ImportedPage, PICT, WMF, PDF, EPS, Image, Group, TextFrame, EndnoteTextFrame or TextPath).

preferences

Preferences Preference

readonly

A collection of preferences objects.

properties

Object

read/write

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

relations

AutofitPageItemRelations

readonly

Access methods related to AutoFit relations associated with a page item

sourceRelations

AutofitSourceRelations

readonly

Access methods related to AutoFit relations with different source objects and the current object as target

spineRelative

Boolean

read/write

Handle the reference point spine relative

targetRelations

AutofitTargetRelations

readonly

Access methods related to AutoFit relations with different target objects and the current object as source

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)

Number dimensions (scale:Array of Varies Real 2 Reals (>= 0). , set:Boolean)

Get/set the current dimensions in points, optionally scaled by a given factor.

Parameter

Type

Description

scale

Real

Array of 2 Reals (>= 0).

The optional scale factor > 0 (1.0 by default). Might be an array of two scale factors for width and height. Can accept: Real or Array of 2 Reals (>= 0). (Optional)

set

Boolean

Optionally use the method to set the minimum and maximum width and height to the computed values (Optional)

Boolean exist ()

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

AutofitPageItemSettings getElements ()

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

Number height (scale:Number, set:Boolean)

Get/set the current height in points, optionally scaled by a given factor.

Parameter

Type

Description

scale

Number

The optional scale factor > 0 (1.0 by default) (Optional)

set

Boolean

Optionally use the method to set the minimum and maximum height to the computed value (Optional)

Boolean isActive ()

Test whether AutofitPageItemSettings 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 AutofitPageItemSettings to the default values

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Number width (scale:Number, set:Boolean)

Get/set the current width in points, optionally scaled by a given factor.

Parameter

Type

Description

scale

Number

The optional scale factor > 0 (1.0 by default) (Optional)

set

Boolean

Optionally use the method to set the minimum and maximum width to the computed value (Optional)

Object of

FormField.autofitSettings

Button.autofitSettings

MultiStateObject.autofitSettings

CheckBox.autofitSettings

ComboBox.autofitSettings

ListBox.autofitSettings

RadioButton.autofitSettings

TextBox.autofitSettings

SignatureField.autofitSettings

Movie.autofitSettings

Sound.autofitSettings

PageItem.autofitSettings

Oval.autofitSettings

Rectangle.autofitSettings

GraphicLine.autofitSettings

Polygon.autofitSettings

Group.autofitSettings

Image.autofitSettings

EPS.autofitSettings

PDF.autofitSettings

WMF.autofitSettings

PICT.autofitSettings

Graphic.autofitSettings

SplineItem.autofitSettings

EPSText.autofitSettings

ImportedPage.autofitSettings

MediaItem.autofitSettings

HtmlItem.autofitSettings

TextFrame.autofitSettings

EndnoteTextFrame.autofitSettings

TextPath.autofitSettings

AutofitAutoResize.parent

AutofitLimits.parent

AutofitPageItemRelations.parent

AutofitSourceRelations.parent

AutofitTargetRelations.parent

Event.parent

EventListener.parent

MutationEvent.parent

Preference.parent

Return

AutofitPageItemSettings.getElements()