Indesign Scripting Reference
home | search | Links
JavaScript >> AnchoredObjectSetting

AnchoredObjectSetting

Anchored object settings.

AnchoredObjectSetting Properties

Property Type Access Description
anchoredPosition AnchorPosition enumeration r/w The position of the anchored object relative to the anchor point.
anchorPoint AnchorPoint enumeration r/w The point on the anchored object to locate at the position specified by the anchoredPosition property.
anchorSpaceAbove Real r/w The space above an anchored object when its anchor position is above the line.
anchorXoffset Real r/w The horizontal offset of the anchored object.
anchorYoffset Real r/w The vertical offset of the anchored object.
horizontalAlignment HorizontalAlignment enumeration r/w The horizontal alignment of the anchored object relative to the horizontal reference point.
horizontalReferencePoint AnchoredRelativeTo enumeration r/w The horizontal reference point of the anchored object.
lockPosition Boolean r/w If true, the position of the anchored object is locked.
parent Object read The parent of the object.
pinPosition Boolean r/w If true, the anchored object position is pinned within the text frame top and bottom.
properties An array of property names and values r/w Property that allows setting of several properties at the same time.
spineRelative Boolean r/w If true, the position of the anchored object is relative to the document’s spine.
verticalAlignment VerticalAlignment enumeration r/w The vertical alignment of the anchored object relative to the vertical reference point.
verticalReferencePoint VerticallyRelativeTo enumeration r/w The vertical reference point for the anchored object.

AnchoredObjectSetting 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.