Skip to content

word style set

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

Examples

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

Based on OfficeCli v1.0.6

Clone this wiki locally