Repository navigation
word style set
goworm edited this page Jun 26, 2026
·
52 revisions
Modify an existing style definition.
Path: /styles/{StyleId}
| 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) |
spaceBeforeAuto |
- | Automatic same-style spacing before paragraphs (bool). Alias: beforeAutospacing
|
spaceAfterAuto |
- | Automatic same-style spacing after paragraphs (bool). Alias: afterAutospacing
|
font.asciiTheme |
- | Theme font binding for the ascii slot (minorHAnsi, majorHAnsi, …). Family: font.hAnsiTheme, font.eaTheme, font.csTheme
|
snapToGrid |
- | Snap to document grid for CJK layout (bool; Set only, not surfaced on Get) |
topLinePunct |
- | Compress punctuation at the start of a line, CJK (bool; Set only, not surfaced on Get) |
suppressAutoHyphens |
- | Disable automatic hyphenation in this style (bool; Set only, not surfaced on Get) |
suppressLineNumbers |
- | Exclude this paragraph style from line numbering (bool; Set only, not surfaced on Get) |
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
|
officecli set report.docx /styles/Heading1 --prop font=Arial --prop size=16 --prop color=1A1A2EBased on OfficeCLI v1.0.64