Skip to content

ppt connector

zmworm edited this page Apr 29, 2026 · 51 revisions

PowerPoint: Connector

Connector lines between shapes or standalone lines on slides.

Path: via shape index after creation

Operations

  • add - Add straight, elbow, or curved connectors
  • set - Modify connector properties
  • get - Get connector attributes

Set Properties

Property Accepted Values Description
name text Connector name
x, y EMU or units Position
width, height EMU or units Size
lineWidth / line.width points Line width
lineColor / line.color hex RGB Line color
lineDash / line.dash dash style Line dash style
lineOpacity / line.opacity 0-1 Line opacity
rotation / rotate degrees Rotation
preset / prstgeom preset name Connector preset geometry

Get Attributes

Key Type Description
name string Connector name
x integer Horizontal position (EMU)
y integer Vertical position (EMU)
width integer Width (EMU)
height integer Height (EMU)
preset string Connector preset type
lineWidth number Line width (pt)
lineDash string Line dash style
lineColor string Line color (hex)
lineOpacity number Line opacity (0-1)
rotation number Rotation angle (degrees)

Examples

# Set connector color and width
officecli set slides.pptx /slide[1]/shape[2] --prop lineColor=FF0000 --prop lineWidth=3pt

# Get connector properties
officecli get slides.pptx /slide[1]/shape[2]

Based on OfficeCLI v1.0.64

Clone this wiki locally