<Rectangle> / Element reference
Rectangle
The Rectangle element in IDML: where it appears (MasterSpreads), its 55 attributes, their values, and how real documents use them.
Definition
A rectangular graphic frame — a vector shape that can also hold a placed image.
- Lives in
MasterSpreads181,Spreads110 andStories1- Frequency
- In 271 of the 305 documents of the census (88.9%), 2026-10-12
- Attributes
- 55 observed, 40 of them vary between documents
- Discussed in
- Frames & paths, Place an image in a frame, Page items and stacking, Images & graphics, ItemTransform and Anchored objects
Structure
Relationships
Inside
Contains
Properties271TextWrapPreference254InCopyExportOption253ObjectExportOption252FrameFittingOption95TransparencySetting49Image44Group6PDF5EPS3FillTransparencySetting3Polygon3- and 3 more
Rectangle 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 |
|---|---|---|---|---|
| AppliedObjectStyle# The object style applied, by its Self, such as ObjectStyle/$ID/[None]. Attributes set on the object itself override the style's. | reference to ObjectStyle | any | — | 100% varies in 88 |
| ItemTransform# Places the object: six numbers a b c d tx ty, an affine matrix from the object's own coordinates to its parent's. | list of numbers | any | — | 100% varies in 113 |
| PathGeometry a child of Properties #The object's outline, in a <Properties> child: one path per contour, each a list of anchor points in the object's own coordinates. | untyped | any | — | 100% varies in 271 |
| Self# The object's ID, unique within the document. An attribute that refers to this object holds this value. | id | any | — | 100% varies in 271 |
| Name# The name InDesign shows for the object in its panels. References between objects use Self, never the name. | builtin or keyword or text | any | — | 99.6% varies in 7 |
Visible#Visible, Locked and Name: an item can be hidden on its own, independently of its layer; locked against editing; and given a name ($ID/ means none). | boolean | true270false7 | true | 99.6% varies in 7 |
| FillColor# The swatch that fills the object (for text, its glyphs), by its Self, such as Color/Black. Swatch/None means no fill. | reference to Color and Gradient | any | — | 99.3% varies in 137 |
| StrokeWeight# The stroke's thickness, in points. | integer or real (pt) | 0 or more | 1 | 97.8% varies in 102 |
| ContentType# What the frame is meant to hold: TextType, GraphicType or Unassigned. | keyword | Unassigned250GraphicType82 | — | 93.4% varies in 82 |
| GradientFillAngle# The direction of a linear gradient fill, in degrees. Used when the fill is a gradient. | integer or real (degrees) | -360 to 360 | — | 93.4% varies in 4 |
| GradientFillHiliteAngle# | integer or real | any | — | 93.4% varies in 3 |
| GradientFillHiliteLength# | integer or real | any | — | 93.4% varies in 3 |
| GradientFillLength# How far a gradient fill runs from its first stop to its last, in points; for a radial gradient, its radius. | integer or real (pt) | 0 or more | — | 93.4% varies in 21 |
| GradientFillStart# Where a gradient fill starts, as x y in the object's own coordinates. | list of numbers (pt) | any | — | 93.4% varies in 21 |
| GradientStrokeAngle# The direction of a linear gradient stroke, in degrees. Used when the stroke is a gradient. | integer (degrees) | -360 to 360 | — | 93.4% varies in 1 |
| GradientStrokeHiliteAngle# | integer | any | — | 93.4% |
| GradientStrokeHiliteLength# | integer | any | — | 93.4% |
| GradientStrokeLength# How far a gradient stroke runs from its first stop to its last, in points; for a radial gradient, its radius. | integer or real (pt) | 0 or more | — | 93.4% varies in 19 |
| GradientStrokeStart# Where a gradient stroke starts, as x y in the object's own coordinates. | list of numbers | any | — | 93.4% varies in 19 |
| LocalDisplaySetting# How InDesign draws this object on screen, overriding the view's display setting. It has no effect on output. | keyword | Default253 | — | 93.4% |
| StoryTitle# | builtin | any | — | 93.4% |
| HorizontalLayoutConstraints# For liquid page rules: three tokens for the space to the left, the width and the space to the right, each FixedDimension or FlexibleDimension. | text | any | — | 93% |
| LastUpdatedInterfaceChangeCount# | — | any | — | 93% |
| OverriddenPageItemProps# InDesign's bookkeeping of which properties were edited after a master item was overridden; nothing drawn depends on it. | integer or list of numbers | any | — | 93% varies in 2 |
| ParentInterfaceChangeCount# | list of numbers | any | — | 93% varies in 9 |
| TargetInterfaceChangeCount# | — | any | — | 93% |
| VerticalLayoutConstraints# For liquid page rules: three tokens for the space above, the height and the space below, each FixedDimension or FlexibleDimension. | text | any | — | 93% |
| MiterLimit# For pointed corners, how far the point may reach, as a multiple of the stroke weight, before the corner is bevelled instead. | integer | 1 to 500 | 4 | 74.2% varies in 1 |
| AllowOverrides# On a master page item: whether a page that uses the master may override it and edit it locally. | boolean | true180 | — | 66.4% |
| StrokeColor# The swatch the stroke is painted with, by its Self. Swatch/None means no stroke. | reference to Color and Swatch | any | — | 37.6% varies in 53 |
| ItemLayer# The layer it is on. | id | any | — | 35.4% varies in 90 |
| Locked# When true, InDesign won't let the object be selected or edited. It still displays and prints. | boolean | false95true7 | false | 35.1% varies in 7 |
| CornerRadius# The all-corner size, in points, InDesign writes beside the per-corner radii. It is not read, not even for a per-corner option that has no radius of its own (that corner is 12 pt). | integer or real | any | — | 10% varies in 21 |
| CornerOption# The all-corner effect InDesign writes beside the four per-corner attributes ( None, RoundedCorner, InverseRoundedCorner, InsetCorner, BevelCorner or FancyCorner). InDesign draws corners from the per-corner attributes alone, on page items and object styles: an element that spells its corners only here has square corners. | keyword | RoundedCorner24 | — | 9.6% varies in 3 |
| TopLeftCornerRadius# The size of the top-left corner's effect, in points; 12 when the corner has an effect and no radius. | integer or real (pt) | 0 or more | 12 | 9.6% varies in 20 |
| TopRightCornerOption# The effect on the top-right corner, in CornerOption's tokens; a bare Rounded or Inset is no effect. With the other three per-corner attributes, this is what InDesign draws. | keyword | NoneRoundedCorner25InverseRoundedCornerInsetCornerBeveledCornerFancyCorner or a named value | None | 9.6% varies in 2 |
| TopRightCornerRadius# The size of the top-right corner's effect, in points; 12 when the corner has an effect and no radius. | integer or real (pt) | 0 or more | 12 | 9.6% varies in 20 |
| BottomRightCornerRadius# The size of the bottom-right corner's effect, in points; 12 when the corner has an effect and no radius. | integer or real (pt) | 0 or more | 12 | 9.2% varies in 19 |
| TopLeftCornerOption# The effect on the top-left corner, in CornerOption's tokens; a bare Rounded or Inset is no effect. With the other three per-corner attributes, this is what InDesign draws. | keyword | NoneRoundedCorner24InverseRoundedCornerInsetCornerBeveledCornerFancyCorner or a named value | None | 9.2% varies in 2 |
| BottomLeftCornerRadius# The size of the bottom-left corner's effect, in points; 12 when the corner has an effect and no radius. | integer or real (pt) | 0 or more | 12 | 8.9% varies in 17 |
| BottomRightCornerOption# The effect on the bottom-right corner, in CornerOption's tokens; a bare Rounded or Inset is no effect. With the other three per-corner attributes, this is what InDesign draws. | keyword | NoneRoundedCorner23InverseRoundedCornerInsetCornerBeveledCornerFancyCorner or a named value | None | 8.9% varies in 2 |
| BottomLeftCornerOption# The effect on the bottom-left corner, in CornerOption's tokens; a bare Rounded or Inset is no effect. With the other three per-corner attributes, this is what InDesign draws. | keyword | NoneRoundedCorner22InverseRoundedCornerInsetCornerBeveledCornerFancyCorner or a named value | None | 8.5% varies in 2 |
| FillTint# The fill colour's strength as a percentage, 0–100. -1 means no tint is set, the same as leaving the attribute out. | integer (percent) | 0 to 100 | 100 | 6.6% varies in 16 |
| StrokeType# The stroke style, by its Self, such as StrokeStyle/$ID/Solid or StrokeStyle/$ID/Dashed. | reference to StrokeStyle | StrokeStyle/$ID/SolidStrokeStyle/$ID/DashedStrokeStyle/$ID/DottedStrokeStyle/$ID/Japanese DotsStrokeStyle/$ID/WavyStrokeStyle/$ID/Thick - ThickStrokeStyle/$ID/Thick - ThinStrokeStyle/$ID/Thin - ThickStrokeStyle/$ID/Thin - Thin or a named value | — | 3.7% varies in 8 |
| StrokeTint# The stroke colour's strength as a percentage, 0–100. -1 means no tint is set, the same as leaving the attribute out. | integer | any | — | 3.3% varies in 4 |
| FlexItemHeightMode# | keyword | FlexFixed6 | — | 2.2% |
| FlexItemWidthMode# | keyword | FlexFixed6 | — | 2.2% |
| StrokeAlignment# Where the stroke sits on the path: centred on it ( CenterAlignment, the default), inside it or outside it. | keyword | CenterAlignmentInsideAlignment5OutsideAlignment or a named value | CenterAlignment | 1.8% varies in 1 |
| ECPageItemData# | — | any | — | 0.4% |
| ECPaginationPageItemData# | list of numbers or text | any | — | 0.4% varies in 1 |
| EndCap# How the open ends of a stroke finish: ButtEndCap (flat at the end point), RoundEndCap, or ProjectingEndCap (squared off half the stroke weight beyond it). | keyword | ButtEndCapRoundEndCapProjectingEndCap | ButtEndCap | 0.4% varies in 1 |
| EndJoin# How the stroke turns at corners: MiterEndJoin (pointed, the default), RoundEndJoin or BevelEndJoin. | keyword | MiterEndJoinRoundEndJoinBevelEndJoin or a named value | MiterEndJoin | 0.4% varies in 1 |
| Label a child of Properties #Key–value data that scripts and plugins attach to the object, as <KeyValuePair Key Value> entries in a <Properties><Label> child. It does not change the layout. | untyped | any | — | 0.4% |
| OverprintFill# When true, the fill prints over the inks beneath it instead of knocking them out. | boolean | any | false | 0.4% |
| StrokeOverprint# | boolean | any | — | 0.4% |
Rectangle (census of 2026-10-12, 305 documents). Seen in is the share of the 271 documents with a Rectangle 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

Rectangle in the example “A filled rectangle and a filled oval”, page 1, as InDesign 20.0.1.32 exports it (checked 2026-10-11). The example, with its source, is in Page-item types.Behavior
Rectangle and Oval as pure vector frames: a FillColor swatch makes each shape paint without any text or image content.
Shown, with its source and a live render, in Page-item types.
The design map lists layers from bottom to top. The red rectangle comes first in the spread but sits on the second-listed layer, so it paints above the blue rectangle on the first-listed layer.
Shown, with its source and a live render, in The layer model.
A one-page template whose frames carry a Name: a text frame 'headline' pointing at its story, and an empty graphic frame 'photo' (ContentType=GraphicType) waiting for an <Image>.
Shown, with its source and a live render, in Swap text and images in a template.
A body page's OverrideList names a master item so the placeholder is suppressed in favour of the page's own copy.
Shown, with its source and a live render, in Override resolution.
Evidence
- Observed
- In 271 of 305 documents (88.9%):
MasterSpreads181,Spreads110 andStories1. - 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
- A filled rectangle and a filled oval: 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.
- Layer order beats document order: 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.
- A template with a named text slot and a named image slot: 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.
- Overriding a master item on a body page: 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 Rectangle. 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 32 of the 55 attributes
- Render
- One feature of the capability record names this element (below); examples compared with InDesign below
- Edit
- 30 attributes map to a scriptable path for
paged.set - Write
- Writes 32 of the 55 attributes on IDML export
By attribute
In the capability record
| Feature | Parse | Render | Edit | Evidence |
|---|---|---|---|---|
| Page-item kinds (TextFrame, Rectangle, Oval, Polygon, GraphicLine, Group) shipped | yes | yes | — | All linked evidence is passing (3 tests current) |
Rendered against InDesign
- A filled rectangle and a filled oval: mean colour difference 0.021 ΔE, structural similarity 1, same fonts on both sides (checked 2026-10-11).
- Layer order beats document order: mean colour difference 0.021 ΔE, structural similarity 1, same fonts on both sides (checked 2026-10-11).
- A template with a named text slot and a named image slot: mean colour difference 0.923 ΔE, structural similarity 0.997, same fonts on both sides (checked 2026-10-11).
- Overriding a master item on a body page: mean colour difference 0.166 ΔE, structural similarity 0.998, 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 Rectangle.