dear support,
Hi,
I have written a sample code for your reference on how to create a circle (oval shape) and connector, you may refer to it and create your desired controls accordingly:
e.g
Sample code:
//Instantiate a new Workbook.
Workbook excelbook = new Workbook();
//Add another oval (circle) shape.
Aspose.Cells.Drawing.Oval oval2 = excelbook.Worksheets[0].Shapes.AddOval(11, 0, 4, 17, 40, 40);
//Set the placement of the oval.
oval2.Placement = PlacementType.FreeFloating;
//Set the line style.
oval2.LineFormat.Style = MsoLineStyle.Single;
oval2.FillFormat.ForeColor = Color.LightBlue;
//Set the line weight.
oval2.LineFormat.Weight = 2;
//Set the color of the oval line.
oval2.LineFormat.ForeColor = Color.Blue;
//Set the dash style of the oval.
oval2.LineFormat.DashStyle = MsoLineDashStyle.Solid;
//Add a line to the worksheet
Aspose.Cells.Drawing.LineShape line2 = excelbook.Worksheets[0].Shapes.AddLine(9, 0, 2, 0, 45, 150);
//Set the line color
line2.LineFormat.ForeColor = Color.Blue;
//Set the line style.
line2.LineFormat.DashStyle = MsoLineDashStyle.Solid;
//Set the weight of the line.
line2.LineFormat.Weight = 1;
//Set the placement.
line2.Placement = PlacementType.FreeFloating;
//Set the line arrows.
line2.EndArrowheadWidth = MsoArrowheadWidth.Narrow;
line2.EndArrowheadStyle = MsoArrowheadStyle.Arrow;
line2.EndArrowheadLength = MsoArrowheadLength.Short;
// line2.BeginArrowheadStyle = MsoArrowheadStyle.Arrow;
// line2.BeginArrowheadLength = MsoArrowheadLength.Medium;
//Save the excel file.
excelbook.Save(“e:\test2\outtstovals4.xlsx”);
Thank you.
thanks for your suggested code.
Hi,
Hi,
ok, thank you.
Hi,
I think you are missing the point.
Hi,
I guess you will need to extend the aspose.cells.drawing.shape class with the notion of connector points.
Hi,
Hi Amjad,
Hi,
Hi Amjad,
Hi,