ViewPreference
View preferences.
ViewPreference Properties
| Property |
Type |
Access |
Description |
| cursorKeyIncrement |
Unit (0.001 – 100 points) |
r/w |
The distance each press of an arrow key will move the selection as Unit (Double or String) (0.001 – 100 points). |
| guideSnaptoZone |
Long (1 – 36) |
r/w |
The range within which an object snaps to guides. |
| horizontalCustomPoints |
Real (4 – 256) |
r/w |
The number of points for the horizontal ruler when using the ‘custom’ measurement system. |
| horizontalMeasurementUnits |
MeasurementUnits enumeration |
r/w |
The measurement unit to use for the horizontal ruler. |
| parent |
Object |
read |
The parent of the object. |
| pointsPerInch |
Real (60 – 80) |
r/w |
The definition of the number of points per inch. Typically 72 pts/inch. |
| properties |
An array of property names and values |
r/w |
Property that allows setting of several properties at the same time. |
| rulerOrigin |
RulerOrigin enumeration |
r/w |
Where the origin of the rulers should be. |
| showFrameEdges |
Boolean |
r/w |
Whether the edges of un-selected text frames are visible. |
| showNotes |
Boolean |
r/w |
Whether notes are displayed. |
| showRulers |
Boolean |
r/w |
Whether the horizontal and vertical rulers are displayed. |
| verticalCustomPoints |
Real (4 – 256) |
r/w |
The number of points for the vertical ruler when using the ‘custom’ measurement system. |
| verticalMeasurementUnits |
MeasurementUnits enumeration |
r/w |
The measurement unit to use for the vertical ruler. |
ViewPreference Methods
| Method |
Returns |
Description |
| getElements |
Array of Objects |
Resolve the object specifier. |
| toSource |
String |
Generate JavaScript source that, if executed, will return the specified objects. |
| toSpecifier |
String |
Retrieve the object specifier. |