Skip to content

ppt connector set

zmworm edited this page Apr 29, 2026 · 18 revisions

PowerPoint: Connector - set

Modify connector line properties.

Path: /slide[N]/connector[M] or connector[@id=X]

Properties

Property Accepted Values Description
x, y EMU or units Position
width, height EMU or units Size
lineColor / line.color / line / color hex or theme Line color
lineWidth / line.width pt Line width
lineDash / line.dash solid, dot, dash, dashdot, longdash, longdashdot Dash style
lineOpacity / line.opacity 0.0-1.0 Line opacity
fill hex or none Fill color
headEnd / headend arrow type Head end arrow (e.g., triangle, diamond, oval)
tailEnd / tailend arrow type Tail end arrow
rotation / rotate degrees Rotation angle
name text Connector name
preset geometry name Preset geometry

Examples

# Change line color and width
officecli set slides.pptx '/slide[1]/connector[1]' --prop lineColor=FF0000 --prop lineWidth=2

# Add arrow heads
officecli set slides.pptx '/slide[1]/connector[1]' --prop headEnd=triangle --prop tailEnd=triangle

# Change dash style
officecli set slides.pptx '/slide[1]/connector[1]' --prop lineDash=dash --prop lineOpacity=0.5

Get Attributes

Attribute Type Description
lineColor string Line color (hex)
lineDash string Dash style
lineOpacity string Line opacity
headEnd string Head end arrow type
tailEnd string Tail end arrow type
startShape string Connected start shape ID
startIdx string Start connection point index
endShape string Connected end shape ID
endIdx string End connection point index

See Also


Based on OfficeCLI v1.0.64

Clone this wiki locally