Edit in GitHubLog an issue

ViewPreference

View preferences.

Instance

Read Only

Boolean isValid

Returns true if the object specifier resolves to valid objects.


Read Only

Mixed parent

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


Read Only

Events events

A collection of events.


Read Only

EventListeners eventListeners

A collection of event listeners.


Number pointsPerInch

The number of points per inch, typically 72. (Range: 60 to 80)


Number horizontalCustomPoints

The distance (in points) between major tick marks on the horizontal ruler. (Range: 4 to 256) Valid only when horizontal measurement units is custom.


Number verticalCustomPoints

The distance (in points) between major tick marks on the vertical ruler. (Range: 4 to 256) Valid only when vertical measurement units is custom.


MeasurementUnits strokeMeasurementUnits

The measurement unit for stroke measurements.


Number guideSnaptoZone

The range (in pixels) within which an object snaps to guides. (Range: 1 to 36) Note: Snapping occurs only when guides are shown.


Measurement Unit (Number or String)=any cursorKeyIncrement

The distance to move a specified object when an arrow key is pressed. (Range depends on the measurement unit. For points: 0.001 to 100; picas: 0p0.001 to 8p4; mm: 0 to 35.278; cm: 0 to 3.5278; inches: 0 to 1.3889; ciceros: 0c0.001 to 7c9.839)


MeasurementUnits horizontalMeasurementUnits

The measurement unit for the horizontal ruler and other horizontally-measured spaces such as grid columns, horizontal offsets, column gutters, or others.


MeasurementUnits verticalMeasurementUnits

The measurement unit for the vertical ruler and other vertically-measured spaces such as grid rows, vertical offsets, row heights, or others.


RulerOrigin rulerOrigin

The default zero point at the intersection of the vertical and horizontal rulers and the scope of the horizontal ruler.


Boolean showRulers

If true, displays the horizontal and vertical rulers.


Boolean showFrameEdges

If true, displays borders of unselected frames and the diagonal lines in empty unselected frames.


MeasurementUnits typographicMeasurementUnits

The measurement units for typography.


MeasurementUnits textSizeMeasurementUnits

The measurement unit for text size measurements.


MeasurementUnits printDialogMeasurementUnits

The measurement unit for the print dialog.


Boolean showNotes

If true, notes are displayed.


Object properties

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

Methods

String toSource()

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


ViewPreference getElements()

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


String toSpecifier()

Retrieves the object specifier.


EventListener addEventListener( String eventType, Mixed handler, Boolean captures )

Adds an event listener.

Parameters

TypeNameDescription
String
eventType
The event type.
Mixed
handler
The event handler. Can accept: File or JavaScript Function.
Boolean
captures
This parameter is obsolete. (Optional)

Boolean removeEventListener( String eventType, Mixed handler, Boolean captures )

Removes the event listener.

Parameters

TypeNameDescription
String
eventType
The registered event type.
Mixed
handler
The registered event handler. Can accept: File or JavaScript Function.
Boolean
captures
This parameter is obsolete. (Optional)
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.