Class
Options for fitting placed or pasted content in a frame. Base Class: Preference
addEventListener, getElements, removeEventListener, toSource, toSpecifier
FrameFittingOption
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
autoFit | bool | r/w | If true, the last saved fitting options will be applied to the contents of a frame when it is resized. |
bottomCrop | Measurement Unit (Number or String) | r/w | The amount in measurement units to crop the bottom edge of a graphic. |
eventListeners | EventListeners | readonly | A collection of event listeners. |
events | Events | readonly | A collection of events. |
fittingAlignment | AnchorPoint: AnchorPoint.TOP_LEFT_ANCHOR AnchorPoint.TOP_CENTER_ANCHOR AnchorPoint.TOP_RIGHT_ANCHOR AnchorPoint.LEFT_CENTER_ANCHOR AnchorPoint.CENTER_ANCHOR AnchorPoint.RIGHT_CENTER_ANCHOR AnchorPoint.BOTTOM_LEFT_ANCHOR AnchorPoint.BOTTOM_CENTER_ANCHOR AnchorPoint.BOTTOM_RIGHT_ANCHOR |
r/w | The point with which to align the image empty when fitting in a frame. For information, see frame fitting options. |
fittingOnEmptyFrame | EmptyFrameFittingOptions: EmptyFrameFittingOptions.NONE EmptyFrameFittingOptions.CONTENT_TO_FRAME EmptyFrameFittingOptions.PROPORTIONALLY EmptyFrameFittingOptions.FILL_PROPORTIONALLY |
r/w | 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 | bool | readonly | Returns true if the object specifier resolves to valid objects. |
leftCrop | Measurement Unit (Number or String) | r/w | The amount in measurement units to crop the left edge of a graphic. |
parent | Application Document ObjectStyle Oval Polygon Rectangle |
readonly | The parent of the FrameFittingOption (a ObjectStyle, Oval, Rectangle, Polygon, Application or Document). |
properties | Object | r/w | A property that allows setting of several properties at the same time. |
rightCrop | Measurement Unit (Number or String) | r/w | The amount in measurement units to crop the right edge of a graphic. |
topCrop | Measurement Unit (Number or String) | r/w | The amount in measurement units to crop the top edge of a graphic. |
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 FrameFittingOption 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 FrameFittingOption.
Element of
Application.frameFittingOptions
Document.frameFittingOptions
ObjectStyle.frameFittingOptions
Oval.frameFittingOptions
Polygon.frameFittingOptions
Rectangle.frameFittingOptions
Return
Array of FrameFittingOption FrameFittingOption.getElements ()
Jongware, 28-Apr-2012 v3.0.3h | Contents :: Index |