Skip to content

word style set

zmworm edited this page Mar 21, 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

Examples

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

Based on OfficeCLI v1.0.11

Clone this wiki locally