
1,069 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm using PowerPoint.ShapeCollection addLine function.
But I'm having trouble drawing parallel lines.
Because addLine's ShapeAddOptions width or height set 0 to recognized as having no value specified.
const newShape1 = shapes.addLine(PowerPoint.ConnectorType.straight, {
left: 100 + shapeWidth + lineWidth / 2,
top: 100 + shapeHeight / 2,
width: 1,
height: 0,
});