We are using connectors in one of our ppt export with shape.
We are facing to set width/height of connector as its setting this value automatically.
I have attached screenshots and some code segment.
If you allow me to attach actual ppt I can upload same.
and I can modify the width of connectors by using scale width property in ppt itself but same property is not there in aspose connector class
the horizontal connector lines should be always in sync with horizonal row line line others row connector except top one.
shape we have created by
IShape grpOvalShape = groupShape.Shapes.AddAutoShape(ShapeType.Ellipse, x, y, dimension, dimension);
and connector by
private static void CreateConnector(IShapeCollection shapeCollection, IShape parent,
IShape child, bool isFirstChild, bool firstElementParent)
{
IConnector connector = shapeCollection.AddConnector(ShapeType.BentConnector3, 0, 0, 200, 0);
connector.ShapeStyle.LineColor.Color = Color.Gray;
connector.LineFormat.Width = ChandelierReportPowerPointOptions.LineWidth;
connector.StartShapeConnectedTo = child;
connector.EndShapeConnectedTo = parent;
connector.StartShapeConnectionSiteIndex = 0;
connector.EndShapeConnectionSiteIndex = 3;
connector.Name = parent.Name + child.Name;
if (!firstElementParent)
{
if (isFirstChild)
{
connector.Width -= 2f;
connector.X += 3f;
connector.Y += 3f;
connector.Height = 0;
}
else
{
connector.Height -= 5f;
connector.Width -= 2f;
connector.X += 3f;
connector.Y += 4f;
}
}
if (firstElementParent)
{
connector.Y += 1f;
connector.Width = 500;
connector.EndShapeConnectionSiteIndex = 0;
connector.ShapeStyle.LineColor.Color = Color.Red;
}
}
Thanks