Adobe InDesign CS4 (6.0) Object Model JS: AnchoredObjectSetting

InDesign CS4

Class

AnchoredObjectSetting

 The settings for an anchored object. Base Class: Preference

QuickLinks

getElements, releaseAnchoredObject, toSource, toSpecifier

Hierarchy

Application | Button | Document | FormField | GraphicLine | Group | ObjectStyle | Oval | PageItem | Polygon | Rectangle | TextFrame
Preference
AnchoredObjectSetting

Properties

PropertyTypeAccessDescription
anchorPointAnchorPoint:
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/wThe point in the anchored object to position.
anchorSpaceAboveMeasurement Unit (Number or String) r/wThe space above an above-line anchored object.
anchorXoffsetMeasurement Unit (Number or String) r/wThe horizontal (x) offset of the anchored object.
anchorYoffsetMeasurement Unit (Number or String) r/wThe vertical (y) offset of the anchored object. Corresponds to the space after property for above line positioning.
anchoredPositionAnchorPosition:
AnchorPosition.INLINE_POSITION
AnchorPosition.ABOVE_LINE
AnchorPosition.ANCHORED
r/wThe position of the anchored object relative to the anchor.
horizontalAlignmentHorizontalAlignment:
HorizontalAlignment.RIGHT_ALIGN
HorizontalAlignment.LEFT_ALIGN
HorizontalAlignment.CENTER_ALIGN
HorizontalAlignment.TEXT_ALIGN
r/wWhen anchored position is above line, the position of the anchored object is relative to the text area. When anchored position is custom, the horizontal alignment of the anchored object is set by the horizontal reference point. Note: Not valid when anchored position is inline.
horizontalReferencePointAnchoredRelativeTo:
AnchoredRelativeTo.COLUMN_EDGE
AnchoredRelativeTo.TEXT_FRAME
AnchoredRelativeTo.PAGE_MARGINS
AnchoredRelativeTo.PAGE_EDGE
AnchoredRelativeTo.ANCHOR_LOCATION
r/wThe horizontal reference point on the page. Valid only when anchored position is custom.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
lockPositionbool r/wIf true, prevents manual positioning of the anchored object.
parentApplication
Button
Document
FormField
GraphicLine
Group
ObjectStyle
Oval
PageItem
Polygon
Rectangle
TextFrame
readonlyThe parent of the AnchoredObjectSetting (a PageItem, Oval, Rectangle, GraphicLine, Polygon, Group, TextFrame, FormField, Button, Application, Document or ObjectStyle).
pinPositionbool r/wIf true, pins the position of the anchored object within the text frame top and bottom.
propertiesObject r/wA property that allows setting of several properties at the same time.
spineRelativebool r/wIf true, the position of the anchored object is relative to the binding spine of the page or spread.
verticalAlignmentVerticalAlignment:
VerticalAlignment.TOP_ALIGN
VerticalAlignment.BOTTOM_ALIGN
VerticalAlignment.CENTER_ALIGN
r/wThe vertical alignment of the anchored object reference point with the vertical reference point on the page. Notes: Valid only when anchored position is custom.
verticalReferencePointVerticallyRelativeTo:
VerticallyRelativeTo.COLUMN_EDGE
VerticallyRelativeTo.TEXT_FRAME
VerticallyRelativeTo.PAGE_MARGINS
VerticallyRelativeTo.PAGE_EDGE
VerticallyRelativeTo.LINE_BASELINE
VerticallyRelativeTo.LINE_XHEIGHT
VerticallyRelativeTo.LINE_ASCENT
VerticallyRelativeTo.CAPHEIGHT
VerticallyRelativeTo.TOP_OF_LEADING
r/wThe vertical reference point on the page. Valid when anchored position is custom.

Methods

Instances

Array of AnchoredObjectSetting getElements ()
Resolves the object specifier, creating an array of object references.

void releaseAnchoredObject ()
Releases the anchored object from its associated text.

string toSource ()
Generates a string which, if executed, will return the AnchoredObjectSetting.

string toSpecifier ()
Retrieves the object specifier.

Element of

Application.anchoredObjectSettings

Button.anchoredObjectSettings

Document.anchoredObjectSettings

FormField.anchoredObjectSettings

GraphicLine.anchoredObjectSettings

Group.anchoredObjectSettings

ObjectStyle.anchoredObjectSettings

Oval.anchoredObjectSettings

PageItem.anchoredObjectSettings

Polygon.anchoredObjectSettings

Rectangle.anchoredObjectSettings

TextFrame.anchoredObjectSettings

Return

Array of AnchoredObjectSetting AnchoredObjectSetting.getElements ()

Jongware, 20-Jun-2010 v3.0.3dContents :: Index