Repository navigation
ppt connector set
goworm edited this page Jun 26, 2026
·
19 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 |
lineJoin / linejoin / line.join
|
round, bevel, miter
|
Line join style at corners (accepts compound miter:<lim>) |
miterLimit / miterlimit / miter.limit / line.miterlimit
|
number (1000ths of a percent) | Miter join limit (e.g. 800000 = 800%); implies lineJoin=miter
|
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 |
lineJoin |
string | Line join style (round, bevel, miter) |
miterLimit |
number | Miter join limit (1000ths of a percent) |
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