Skip to content

ppt run

zmworm edited this page Mar 31, 2026 · 21 revisions

PowerPoint: Run

Text run within a paragraph.

Path: /slide[N]/shape[M]/paragraph[P]/run[R]

Operations

  • add - Add a run to a paragraph or shape
  • set - Modify run properties
  • get - Get run attributes

Set Properties

Property Accepted Values Description
text text Run text
link URL Hyperlink
font font name Font family
size number (pt) Font size
bold bool Bold
italic bool Italic
color hex RGB Font color
underline single, double, heavy, dotted, dash, wavy, none Underline style
strike single, double, none Strikethrough
spacing / charSpacing points Character spacing
baseline super, sub, none, or percentage Baseline shift

Get Attributes

Key Type Description
text string Run text
font string Font name
size number Font size (pt)
bold boolean Bold
italic boolean Italic
color string Font color (hex)
underline string Underline style
strike string Strikethrough style
link string Hyperlink URL
spacing number Character spacing (points)
baseline string Baseline shift

Examples

# Set hyperlink on a run
officecli set pres.pptx /slide[1]/shape[1]/paragraph[1]/run[1] --prop link=https://example.com

# Style a run
officecli set pres.pptx /slide[1]/shape[1]/paragraph[1]/run[1] --prop bold=true --prop color=FF0000 --prop underline=wavy

# Get run properties
officecli get pres.pptx /slide[1]/shape[1]/paragraph[1]/run[1]

Based on OfficeCLI v1.0.28

Clone this wiki locally