FrameFittingOption

Options for fitting placed or pasted content in a frame.

Methods:

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Objects:

AnchorPoint, Boolean, EmptyFrameFittingOptions, EventListeners, Events, Number, Object, String

Hierarchy:

Superclass: Preference

Class: FrameFittingOption

Property Listing

Property

Type

Access

Description

autoFit

Boolean

read/write

If true, the last saved fitting options will be applied to the contents of a frame when it is resized.

bottomCrop

Number

String

read/write

The amount in measurement units to crop the bottom edge of a graphic.

eventListeners

EventListeners EventListener

readonly

A collection of event listeners.

events

Events Event

readonly

A collection of events.

fittingAlignment

AnchorPoint

AnchorPoint.BOTTOM_CENTER_ANCHOR

AnchorPoint.BOTTOM_LEFT_ANCHOR

AnchorPoint.BOTTOM_RIGHT_ANCHOR

AnchorPoint.CENTER_ANCHOR

AnchorPoint.LEFT_CENTER_ANCHOR

AnchorPoint.RIGHT_CENTER_ANCHOR

AnchorPoint.TOP_CENTER_ANCHOR

AnchorPoint.TOP_LEFT_ANCHOR

AnchorPoint.TOP_RIGHT_ANCHOR

read/write

The point with which to align the image empty when fitting in a frame. For information, see frame fitting options.

fittingOnEmptyFrame

EmptyFrameFittingOptions

EmptyFrameFittingOptions.CONTENT_TO_FRAME

EmptyFrameFittingOptions.FILL_PROPORTIONALLY

EmptyFrameFittingOptions.NONE

EmptyFrameFittingOptions.PROPORTIONALLY

read/write

The frame fitting option to apply to placed or pasted content if the frame is empty. Can be applied to a frame, object style, or document or to the application.

isValid

Boolean

readonly

Returns true if the object specifier resolves to valid objects.

leftCrop

Number

String

read/write

The amount in measurement units to crop the left edge of a graphic.

parent

Application

Oval

Polygon

Rectangle

Document

ObjectStyle

readonly

The parent of the FrameFittingOption (a ObjectStyle, Oval, Rectangle, Polygon, Application or Document).

properties

Object

read/write

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

rightCrop

Number

String

read/write

The amount in measurement units to crop the right edge of a graphic.

topCrop

Number

String

read/write

The amount in measurement units to crop the top edge of a graphic.

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)

FrameFittingOption getElements ()

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

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)

String toSource ()

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

String toSpecifier ()

Retrieves the object specifier.

Object of

Application.frameFittingOptions

Document.frameFittingOptions

Oval.frameFittingOptions

Rectangle.frameFittingOptions

Polygon.frameFittingOptions

ObjectStyle.frameFittingOptions

Event.parent

EventListener.parent

MutationEvent.parent

Return

FrameFittingOption.getElements()