Skip to content

API reference / Common / Engine types / Diagram

Interface: Diagram ​

A diagram: the parts a graphic frame names by id — what ShapeGraphicData::Diagram holds.

The frame's dgm:relIds names "each of the four constituent parts of a DrawingML diagram" (§21.4.2.22). The fifth, the drawing Office saves its last layout in (MS-ODRAWXML §2.10.1.2), is named by an id the data part writes in its dsp:dataModelExt, but its relationship is the host part's, as the other four are (MS-ODRAWXML §2.1.3) — so it sits here with them, and the drawing is reached without the data part.

Properties ​

PropertyDescription
data
string
What the user typed — dgm:relIds/@r:dm.
layout
string
How the data is laid out — dgm:relIds/@r:lo.
style
string
The quick style — dgm:relIds/@r:qs.
colors
string
The color transform — dgm:relIds/@r:cs.
drawing
string | null
The last layout Office saved — the host part's diagramDrawing relationship that the data part's dsp:dataModelExt/@relId names.