Skip to content

API reference / Common / Engine types / PaintBorder

Interface: PaintBorder ​

One edge's border (CT_Border) — its line style, width, color, and the gap to the content it encloses.

docx-only: DrawingML spells every edge as an a:ln instead, so a shape, a table cell, or a text span that came from pptx carries a PaintLine here and nothing else.

Properties ​

PropertyDescription
style
PaintBorderStyle
@val — the line pattern.
width
number
@sz — the line width in points (docx stores eighths of a point, resolved at import).
color?
PaintColor
@color (+ @themeColor) — the line color. None is auto (a contrast default). Any alpha lives on the [PaintColor].
spacing
number
@space — the gap between the border and what it encloses, in points.