LayoutWindow

A layout window.

Methods:

bringToFront, close, maximize, minimize, restore, select, zoom

Objects:

AnchorPoint, Boolean, Layer, NothingEnum, Number, Object, Page, ProofingType, Spread, String, ViewDisplaySettings

Hierarchy:

Superclass: Window

Class: LayoutWindow

Property Listing

Property

Type

Access

Description

activeLayer

Layer

read/write

The active layer

activePage

Page

read/write

The front-most page.

activeSpread

Spread

read/write

The active spread.

bounds

Array of Number

Array of String

read/write

The bounds of the LayoutWindow, in the format [y1, x1, y2, x2].

index

Number

readonly

The index of the LayoutWindow within its containing object.

name

String

readonly

The name of the LayoutWindow.

overprintPreview

Boolean

read/write

If true, display a simulation of overprinting.

parent

Application

Document

readonly

The parent of the LayoutWindow (a Document or Application).

proofingProfile

String

read/write

The profile used for proofing colors.

proofingType

ProofingType

ProofingType.CUSTOM

ProofingType.DOCUMENT_CMYK

ProofingType.PROOF_OFF

ProofingType.WORKING_CMYK

read/write

The method of proofing colors.

properties

Object

read/write

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

selection

Array of Objects

Object

NothingEnum.NOTHING

read/write

The selection. Can return: Object, Array of Objects or NothingEnum enumerator.

simulateInkBlack

Boolean

read/write

If true, simulates the dark gray produced by many printers in place of solid black, according to the proofing profile. Note: Valid only when proofing type is custom.

simulatePaperWhite

Boolean

read/write

If true, simulates the dingy white of real paper, according to the proofing profile. Note: Valid only when proofing type is custom.

transformReferencePoint

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

Array of 2 Units.

read/write

The default anchor point around which to transform objects. Can return: AnchorPoint enumerator or Array of 2 Units.

viewDisplaySetting

ViewDisplaySettings

ViewDisplaySettings.HIGH_QUALITY

ViewDisplaySettings.OPTIMIZED

ViewDisplaySettings.TYPICAL

read/write

The display performance preferences override for the view.

zoomPercentage

Number

read/write

The current zoom.

Method Listing

undefined bringToFront ()

Brings the LayoutWindow to the front.

undefined close ()

Closes the LayoutWindow.

undefined maximize ()

Maximizes the window.

undefined minimize ()

Minimizes the window.

undefined restore ()

Restores the window.

undefined select (selectableItems:Array of Varies Objects Object NothingEnum, [existingSelection:SelectionOptions=SelectionOptions])

Select one or more objects.

Parameter

Type

Description

selectableItems

Array of Objects

Object

NothingEnum.NOTHING

The object(s) to select. Can accept: Object, Array of Objects or NothingEnum enumerator.

existingSelection

SelectionOptions

SelectionOptions.ADD_TO

SelectionOptions.REMOVE_FROM

SelectionOptions.REPLACE

How to handle the existing selection (Optional)

(default: SelectionOptions.REPLACE)

undefined zoom (given:ZoomOptions)

Magnifies or reduces the window to the specified display size.

Parameter

Type

Description

given

ZoomOptions

ZoomOptions.ACTUAL_SIZE

ZoomOptions.FIT_PAGE

ZoomOptions.FIT_SPREAD

ZoomOptions.SHOW_PASTEBOARD

ZoomOptions.ZOOM_IN

ZoomOptions.ZOOM_OUT

The display size.

Object of

Application.activeWindow