-
Notifications
You must be signed in to change notification settings - Fork 517
ppt connector set
zmworm edited this page Apr 29, 2026
·
18 revisions
Modify connector line properties.
Path: /slide[N]/connector[M] or connector[@id=X]
| 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 |
# 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| 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 |
- Connector add - Create connectors
- PowerPoint Reference - All PPT elements
Based on OfficeCLI v1.0.64