Skip to content

API reference / Common / Engine types / PaintLine

Interface: PaintLine ​

A line outline (a:ln, CT_LineProperties). Every field is optional so a partial override (just a width, just a dash) round-trips faithfully.

Properties ​

PropertyDescription
width
number | null
@w — width in points (converted from EMU at import).
cap
PaintLineCap | null
@cap — end-cap style.
compound
PaintCompoundLine | null
@cmpd — compound (multi-stroke) line type.
align
PaintPenAlignment | null
@algn — pen alignment relative to the path.
fill
PaintFill | null
The stroke paint — the EG_LineFillProperties choice (a:noFill / a:solidFill / a:gradFill / a:pattFill).
dash
PaintLineDash | null
The dash pattern — the EG_LineDashProperties choice (a:prstDash / a:custDash).
join
PaintLineJoin | null
The corner join — the EG_LineJoinProperties choice (a:round / a:bevel / a:miter).
headEnd
PaintLineEnd | null
a:headEnd — start arrowhead.
tailEnd
PaintLineEnd | null
a:tailEnd — end arrowhead.