-
Notifications
You must be signed in to change notification settings - Fork 567
word run get
zmworm edited this page Mar 18, 2026
·
51 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 |
link |
string | Hyperlink URL |
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.6