-
Notifications
You must be signed in to change notification settings - Fork 29
word run get
zmworm edited this page Mar 27, 2026
·
19 revisions
Returned attributes when getting a run element within a paragraph.
Path: /body/p[N]/r[M]
| Key | Type | Description |
|---|---|---|
font |
string | Font family name |
size |
integer | Font size (half-points) |
bold |
boolean | Bold formatting |
italic |
boolean | Italic formatting |
color |
string | Font color (hex, e.g. FF0000) |
underline |
string | Underline style (single, double, wave, etc.) |
strike |
boolean | Strikethrough |
highlight |
string | Highlight color name (yellow, green, etc.) |
caps |
boolean | All caps |
smallcaps |
boolean | Small caps |
dstrike |
boolean | Double strikethrough |
vanish |
boolean | Hidden text |
outline |
boolean | Outline effect |
shadow |
boolean | Shadow effect |
emboss |
boolean | Emboss effect |
imprint |
boolean | Imprint effect |
noproof |
boolean | No proofing flag |
rtl |
boolean | Right-to-left text |
superscript |
boolean | Superscript vertical alignment |
subscript |
boolean | Subscript vertical alignment |
shading |
string | Shading fill color. Alias: shd
|
link |
string | Hyperlink URL |
textOutline |
string | Text outline (e.g. "0.5pt;#FF0000") |
textFill |
string | Text fill: "#C1;#C2;ANGLE", "radial:#C1;#C2", or "#COLOR"
|
w14shadow |
string | Text shadow color (e.g. "#000000") |
w14glow |
string | Text glow (e.g. "#4472C4;6") |
w14reflection |
string | Text reflection style: tight, half, full
|
officecli get report.docx /body/p[1]/r[1]/body/p[1]/r[1] (Run) "Annual Report 2025"
font: Calibri
size: 56
bold: true
color: #1F3864
underline: single
Based on OfficeCLI v1.0.24