Skip to content

word style set

zmworm edited this page Apr 29, 2026 · 51 revisions

Word: Style - set

Modify an existing style definition.

Path: /styles/{StyleId}

Properties

Property Default Description
name - Display name (text)
basedOn - Base style ID
next - Next style ID
font - Font name
size - Font size (number, pt)
bold - Bold (bool)
italic - Italic (bool)
color - Text color (hex)
alignment - left, center, right, justify
spaceBefore - Space before paragraph (integer)
spaceAfter - Space after paragraph (integer)
underline - Underline style (single, double, true/false/none)
strike - Strikethrough (bool). Alias: strikethrough
lineSpacing - Line spacing (1.5x for multiplier, 18pt for fixed)
pbdr.* - Paragraph borders (style;size;color;space). Supports .top, .bottom, .left, .right, .between, .bar, .all

Examples

officecli set report.docx /styles/Heading1 --prop font=Arial --prop size=16 --prop color=1A1A2E

Based on OfficeCLI v1.0.64

Clone this wiki locally