I am using 'Callout: Down Arrow 1' shape using spire xls,
can we change its arrow size using spire xls?
I want it like this:
//Instantiate a workbook object
Workbook workbook = new Workbook();
//Get the first worksheet
Worksheet sheet = workbook.Worksheets[0];
//Add a rectangle
IPrstGeomShape rect = sheet.PrstGeomShapes.AddPrstGeomShape(10, 2, 300, 200, PrstGeomShapeType.Rect);
rect.Left = 20;
rect.Top = 20;
//Add a line
IPrstGeomShape line = sheet.PrstGeomShapes.AddPrstGeomShape(10, 2, 1, 70, PrstGeomShapeType.Line);
line.Left = rect.Left + rect.Width / 2;
line.Top = rect.Top + rect.Height;
//Add a triangle
IPrstGeomShape triangle = sheet.PrstGeomShapes.AddPrstGeomShape(10, 2, 40, 30, PrstGeomShapeType.Triangle);
triangle.Rotation = 180;
triangle.Left = rect.Left + rect.Width / 2 - triangle.Width / 2;
triangle.Top = rect.Top + rect.Height + line.Height;
//Save the file
workbook.SaveToFile("AddShapes.xlsx", ExcelVersion.Version2013);
//Sample code
Workbook workbook = new Workbook();
Worksheet sheet = workbook.Worksheets[0];
IPrstGeomShape prstGeomShape = sheet.PrstGeomShapes.AddPrstGeomShape(10, 12, 200, 200, PrstGeomShapeType.DownArrowCallout);
XlsPrstGeomShape xlsPrstGeomShape = (XlsPrstGeomShape)prstGeomShape;
GeomertyAdjustValue geomertyAdjustValuel = xlsPrstGeomShape.ShapeAdjustValues.AddAdjustValue(GeomertyAdjustValueFormulaType.LiteralValue);
geomertyAdjustValuel.SetFormulaParameter(10);
GeomertyAdjustValue geomertyAdjustValue2 = xlsPrstGeomShape.ShapeAdjustValues.AddAdjustValue(GeomertyAdjustValueFormulaType.LiteralValue);
geomertyAdjustValue2.SetFormulaParameter(20);
GeomertyAdjustValue geomertyAdjustValue3 = xlsPrstGeomShape.ShapeAdjustValues.AddAdjustValue(GeomertyAdjustValueFormulaType.LiteralValue);
geomertyAdjustValue3.SetFormulaParameter(25);
GeomertyAdjustValue geomertyAdjustValue4 = xlsPrstGeomShape.ShapeAdjustValues.AddAdjustValue(GeomertyAdjustValueFormulaType.LiteralValue);
geomertyAdjustValue4.SetFormulaParameter(50);
workbook.SaveToFile("AddShapes.xlsx", ExcelVersion.Version2013);