Skip to content

word run add

zmworm edited this page Apr 29, 2026 · 51 revisions

Word: Run - add

Add an inline text segment with character formatting to a paragraph.

Parent: /body/p[N]

Properties

Property Default Description
text (empty) Text content
font, size, bold, italic, color - Formatting
underline - single, double, thick, dotted, dashed, etc.
strike - Strikethrough
highlight - Highlight color
caps, smallCaps - Capitalization
superscript, subscript - Position
shading/shd - Background
dstrike - Double strikethrough (bool)
vanish - Hidden text (bool)
outline - Outline (bool)
shadow - Shadow (bool)
emboss - Emboss (bool)
imprint - Imprint (bool)
noproof - No spell check (bool)
rtl - Right-to-left (bool)
textOutline - Text outline: "WIDTHpt;COLOR", none (Word 2010+)
textFill - Text fill gradient: "C1;C2[;ANGLE]", "radial:C1;C2", or solid COLOR (Word 2010+)
w14shadow - Text shadow: "COLOR[;BLUR[;ANGLE[;DIST[;OPACITY]]]]", none (Word 2010+)
w14glow - Text glow: "COLOR[;RADIUS[;OPACITY]]", none (Word 2010+)
w14reflection - Text reflection: tight, half, full, none (Word 2010+)

Examples

# Add bold text to a paragraph
officecli add report.docx /body/p[1] --type run --prop text="important" --prop bold=true --prop color=FF0000

# Add superscript
officecli add report.docx /body/p[1] --type run --prop text="2" --prop superscript=true

Based on OfficeCLI v1.0.64

Clone this wiki locally