<AnchoredObjectSetting> / Element reference
AnchoredObjectSetting
The AnchoredObjectSetting element in IDML: where it appears (Resources/Preferences), its 12 attributes, their values, and how real documents use them.
Definition
Where an anchored object sits relative to its anchor in the text: inline, on a line above, or at a custom position.
- Lives in
Resources/Preferences271,Resources/Styles271 andStories3- Frequency
- In 272 of the 305 documents of the census (89.2%), 2026-10-12
- Attributes
- 12 observed, 11 of them vary between documents
- Discussed in
- Anchored objects, Anchored & inline objects and Object styles
Structure
Relationships
AnchoredObjectSetting sits: the elements that hold it, and the elements it holds. Each number is the documents that show the pairing (census of 2026-10-12, 305 documents).Attributes
| Attribute | Type | Values | Default | Seen in |
|---|---|---|---|---|
| AnchoredPosition# How the object is placed: InlinePosition (in the line, the default), AboveLine (on a line of its own above) or Anchored (a custom position). | keyword | InlinePosition272AboveLineAnchored or a named value | InlinePosition | 100% varies in 1 |
AnchorPoint#AnchorPoint, one of nine (TopLeftAnchor, TopCenterAnchor, … BottomRightAnchor), is the point on the object. | keyword | TopLeftAnchor14TopCenterAnchorTopRightAnchorLeftCenterAnchorCenterAnchorRightCenterAnchorBottomLeftAnchorBottomCenterAnchorBottomRightAnchor272 or a named value | — | 100% varies in 14 |
| AnchorXoffset# The horizontal offset of a custom object. | integer (pt) | any | 0 | 100% varies in 1 |
| AnchorYoffset# Moves an inline object up from the baseline (positive is up). | integer (pt) | any | 0 | 100% varies in 1 |
HorizontalAlignment#HorizontalAlignment (LeftAlign, CenterAlign, RightAlign) and VerticalAlignment (TopAlign, CenterAlign, BottomAlign) say which side of the reference the object goes to. | keyword | LeftAlign272 | — | 100% varies in 1 |
| HorizontalReferencePoint# What it is measured from across: AnchorLocation (the anchor character), ColumnEdge, TextFrame, PageMargins or PageEdge. | keyword | TextFrame272 | — | 100% varies in 1 |
| LockPosition# Keeps the object from being dragged by hand. | boolean | false272 | false | 100% varies in 1 |
| PinPosition# | boolean | true272false13 | — | 100% varies in 13 |
| SpineRelative# Mirrors the horizontal placement on facing pages, so an object on the outside margin stays outside. | boolean | false272 | false | 100% varies in 1 |
| VerticalAlignment# For a custom position: which side of the vertical reference the object goes to, TopAlign, CenterAlign or BottomAlign. | keyword | BottomAlign272TopAlign259CenterAlign13 | — | 100% varies in 264 |
| VerticalReferencePoint# What it is measured from down: a line of the anchor ( LineBaseline, LineXHeight, LineCapHeight, TopOfLeading), or TextFrame, PageMargins, PageEdge. | keyword | LineBaseline272 | — | 100% varies in 1 |
| AnchorSpaceAbove# The space above an above-line object. | integer | any | — | 99.6% |
AnchoredObjectSetting (census of 2026-10-12, 305 documents). Seen in is the share of the 272 documents with a AnchoredObjectSetting that set the attribute; varies in counts those that hold a value other than the most common one. Values are listed, with the documents using each, only where documents use a small closed set. A name with a dotted underline links to the chapter that explains it. How the census counts.Visualization

AnchoredObjectSetting in the example “An inline object anchored in the middle of a line”, page 1, as InDesign 20.0.1.32 exports it (checked 2026-10-11). The example, with its source, is in Anchored objects.Behavior
A Rectangle written inside a CharacterStyleRange, between two Content elements, is an anchored object at that character position; with AnchoredPosition="InlinePosition" it sits in the line like a character as wide as the object.
Shown, with its source and a live render, in Anchored objects.
Evidence
- Observed
- In 272 of 305 documents (89.2%):
Resources/Preferences271,Resources/Styles271 andStories3. - Census
- Taken 2026-10-12 over 305 documents (34 written by test generators, 267 from template packs, 4 samples). It observed 281 elements; this reference gives 195 of them an entry. How the census counts
- Counts are
- Documents, not occurrences. Values are published only for small closed sets; numbers only by kind.
- InDesign checks
- An inline object anchored in the middle of a line: Opened by InDesign 20.0.1.32 with no missing font or link, saved back as IDML and exported to PDF (1 page), 2026-10-11.
Paged support
What Paged, one implementation of the format, does with AnchoredObjectSetting. Nothing in this panel is part of the format; the reference above holds for any reader.
As of: scriptable paths from engine release v0.77.0; parse and write from the importer and exporter at paged b6f499b, read 2026-11-30; render from the capability record exported 2026-11-29.
- Parse
- Reads 10 of the 12 attributes
- Render
- No feature of the capability record names this element; examples compared with InDesign below
- Edit
- 10 attributes map to a scriptable path for
paged.set - Write
- Writes 5 of the 12 attributes on IDML export
By attribute
| Attribute | Parse | Edit | Write |
|---|---|---|---|
| AnchoredPosition | readsstory.rs:2508 | anchoredPosition | writesinline_objects.rs:679 |
| AnchorPoint | readsstory.rs:2518 | anchorPoint | not written |
| AnchorXoffset | readsstory.rs:2502 | anchoredXOffset | writesinline_objects.rs:699 |
| AnchorYoffset | readsstory.rs:2503 | anchoredYOffset | writesinline_objects.rs:702 |
| HorizontalAlignment | readsstory.rs:2523 | anchoredHorizontalAlignment | not written |
| HorizontalReferencePoint | readsstory.rs:2522 | anchoredHorizontalReference | not written |
| LockPosition | readsstory.rs:2504 | anchoredLockPosition | writesinline_objects.rs:685 |
| PinPosition | not read | — | not written |
| SpineRelative | readsstory.rs:2501 | anchoredSpineRelative | writesinline_objects.rs:682 |
| VerticalAlignment | readsstory.rs:2525 | anchoredVerticalAlignment | not written |
| VerticalReferencePoint | readsstory.rs:2524 | anchoredVerticalReference | not written |
| AnchorSpaceAbove | not read | — | not written |
Rendered against InDesign
- An inline object anchored in the middle of a line: mean colour difference 0.023 ΔE, structural similarity 1, same fonts on both sides (checked 2026-10-11).
Parse and write come from the idml-coverage record, which reads the importer and exporter source; each mark links to the line. Render is recorded per feature, not per attribute. A feature is listed when its title in the record names AnchoredObjectSetting.
AnchoredObjectDefault
The AnchoredObjectDefault element in IDML: where it appears (Resources/Preferences), its 5 attributes, their values, and how real documents use them.
BaselineFrameGridOption
The BaselineFrameGridOption element in IDML: where it appears (Resources/Preferences), its 5 attributes, their values, and how real documents use them.