The settings for an anchored object.
Go to Property Listing | Method Listing
insertAnchoredObject, releaseAnchoredObject, toSource, getElements, toSpecifier, addEventListener, removeEventListener
AnchorPoint, AnchorPosition, AnchoredRelativeTo, Application, Boolean, Button, CheckBox, ComboBox, Document, EPSText, EventListeners, Events, FormField, GraphicLine, Group, HorizontalAlignment, ListBox, MultiStateObject, Number, Object, ObjectStyle, Oval, Polygon, RadioButton, Rectangle, SignatureField, SplineItem, String, TextBox, TextFrame, VerticalAlignment, VerticallyRelativeTo,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
anchorPoint |
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 |
read/write |
The point in the anchored object to position. |
|
anchorSpaceAbove |
read/write |
The space above an above-line anchored object. |
|
|
anchorXoffset |
read/write |
The horizontal (x) offset of the anchored object. |
|
|
anchorYoffset |
read/write |
The vertical (y) offset of the anchored object. Corresponds to the space after property for above line positioning. |
|
|
anchoredPosition |
AnchorPosition.INLINE_POSITION AnchorPosition.ABOVE_LINE AnchorPosition.ANCHORED |
read/write |
The position of the anchored object relative to the anchor. |
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
horizontalAlignment |
HorizontalAlignment.RIGHT_ALIGN HorizontalAlignment.LEFT_ALIGN HorizontalAlignment.CENTER_ALIGN HorizontalAlignment.TEXT_ALIGN |
read/write |
When 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. |
|
horizontalReferencePoint |
AnchoredRelativeTo.COLUMN_EDGE AnchoredRelativeTo.TEXT_FRAME AnchoredRelativeTo.PAGE_MARGINS AnchoredRelativeTo.PAGE_EDGE AnchoredRelativeTo.ANCHOR_LOCATION |
read/write |
The horizontal reference point on the page. Valid only when anchored position is custom. |
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
lockPosition |
read/write |
If true, prevents manual positioning of the anchored object. |
|
|
parent |
readonly |
The parent of the AnchoredObjectSetting (a Application, Document, EPSText, SplineItem, Polygon, GraphicLine, Rectangle, Oval, Group, TextFrame, Button, FormField, SignatureField, TextBox, RadioButton, ListBox, ComboBox, CheckBox, MultiStateObject or ObjectStyle). |
|
|
pinPosition |
read/write |
If true, pins the position of the anchored object within the text frame top and bottom. |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
spineRelative |
read/write |
If true, the position of the anchored object is relative to the binding spine of the page or spread. |
|
|
verticalAlignment |
VerticalAlignment.TOP_ALIGN VerticalAlignment.BOTTOM_ALIGN VerticalAlignment.CENTER_ALIGN |
read/write |
The vertical alignment of the anchored object reference point with the vertical reference point on the page. Notes: Valid only when anchored position is custom. |
|
verticalReferencePoint |
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 VerticallyRelativeTo.EMBOX_TOP VerticallyRelativeTo.EMBOX_MIDDLE VerticallyRelativeTo.EMBOX_BOTTOM |
read/write |
The vertical reference point on the page. Valid when anchored position is custom. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
AnchoredObjectSetting getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertAnchoredObject (storyOffset:InsertionPoint, anchoredPosition:AnchorPosition)
Inserts the anchored object into specified story.
|
Parameter |
Type |
Description |
|---|---|---|
|
storyOffset |
The location within the story, specified as an insertion point. |
|
|
anchoredPosition |
AnchorPosition.INLINE_POSITION AnchorPosition.ABOVE_LINE AnchorPosition.ANCHORED |
The position of the anchored object relative to the anchor. (Optional) |
undefined releaseAnchoredObject ()
Releases the anchored object from its associated text.
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the AnchoredObjectSetting.
String toSpecifier ()
Retrieves the object specifier.
Application.anchoredObjectSettings
Document.anchoredObjectSettings
FormField.anchoredObjectSettings
Button.anchoredObjectSettings
MultiStateObject.anchoredObjectSettings
CheckBox.anchoredObjectSettings
ComboBox.anchoredObjectSettings
ListBox.anchoredObjectSettings
RadioButton.anchoredObjectSettings
TextBox.anchoredObjectSettings
SignatureField.anchoredObjectSettings
Oval.anchoredObjectSettings
Rectangle.anchoredObjectSettings
GraphicLine.anchoredObjectSettings
Polygon.anchoredObjectSettings
Group.anchoredObjectSettings
SplineItem.anchoredObjectSettings
EPSText.anchoredObjectSettings
ObjectStyle.anchoredObjectSettings
TextFrame.anchoredObjectSettings
Event.parent
EventListener.parent
MutationEvent.parent