Skip to content

word shape

zmworm edited this page May 24, 2026 · 1 revision

Word: Shape

DrawingML shape (w:drawing → bare wps:wsp with a:prstGeom). Visual primitive without a text body — for arrows, callouts, banners, decorative geometry.

Path: /body/p[N]/shape[M]

Operations

  • add, get, set, remove — full Add+Get symmetry

Properties

Property Description
geometry / preset Shape preset (rect, rightArrow, pentagon, star5, …)
x / y, width / height Position and size (EMU or unit-qualified)
fill Solid fill (hex)
line.color / line.width / line.dash Outline
wrap Anchor wrap
alt Alt text
rotation Rotation in degrees

Examples

officecli add report.docx /body/p[1] --type shape --prop geometry=rightArrow --prop x=2cm --prop y=4cm --prop width=4cm --prop height=2cm --prop fill=4472C4

officecli set report.docx /body/p[1]/shape[1] --prop rotation=45

See Also


Based on OfficeCLI v1.0.97

Clone this wiki locally