Hi,
I have next issue.
While I’m building charts consisting of shapes and connectors (curved, bent, straight connectors) I’m facing situations when connectors are overlapping some of shapes.
E.g.
using (var presentation = new Presentation())
{
var slide = presentation.Slides[0];
var primaryShape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 150, 50, 100, 30);
primaryShape.TextFrame.Text = "shape 1";
var targetShape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 350, 250, 100, 30);
targetShape.TextFrame.Text = "shape 2";
var intersectedShape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 300, 180, 100, 30);
intersectedShape.TextFrame.Text = "intersected shape";
var arrow = slide.Shapes.AddConnector(ShapeType.CurvedConnector2, 0, 0, 10, 10, true);
arrow.LineFormat.FillFormat.FillType = FillType.Solid;
arrow.LineFormat.FillFormat.SolidFillColor.Color = System.Drawing.Color.Red;
arrow.StartShapeConnectionSiteIndex = 3;
arrow.StartShapeConnectedTo = primaryShape;
arrow.EndShapeConnectedTo = targetShape;
arrow.EndShapeConnectionSiteIndex = 0;
presentation.Save(fileNameToSave, Aspose.Slides.Export.SaveFormat.Pptx);
}
Here the connector will overlap with shape ‘intersected shape’.
Issue 1) I don’t know when connector is overlapping some particular shape. I haven’t found in documentation any way to understand that. Also the connector itself provides only the connector frame, but I don’t know what is the exact connector shape line and in which point it crosses the underlying shape.
Issue 2) I cannot increase the curvature or set the bent point manually. Is there any known way to do that?
Is there any plan to add such functionality in nearest future since it is crucial for our project?
We are trying to build clear charts avoiding any connector intersections.
Thank you