Currently, I only have a bad implementation:
1. I insert a line as a ShapeConnector. However, I have to rotate it to the correct direction.
Is there other method to insert a line?
e.g. Can I insert a line by its two end points as in "Microsoft.Office.Interop.PowerPoint".
2. If I want to insert an elbow line, should I insert several sub-lines and group them into one single shape?
I found a function to group shapes, while I'm still trying to learn how to use it.
Thank you so much!
- Code: Select all
IShape ish= CurPresentation.Slides[1].Shapes.AppendShapeConnector(dropConnectors[i].DropConnectorShapeType,
new RectangleF(posX, posY, w, h));
shape.ShapeStyle.LineColor.Color = Color.Black;
shape.Rotation = (int)(rotateAng);