//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); IWorksheet worksheet = workbook.Worksheets[0]; // Add a right arrow callout. GrapeCity.Documents.Excel.Drawing.IShape shape = worksheet.Shapes.AddShape(GrapeCity.Documents.Excel.Drawing.AutoShapeType.RightArrowCallout, 20, 20, 200, 100); GrapeCity.Documents.Excel.Drawing.IAdjustments adjustments = shape.Adjustments; adjustments[0] = 0.5;// arrow neck width adjustments[1] = 0.4;// arrow head width adjustments[2] = 0.5;// arrow head height adjustments[3] = 0.6;// text box width // Save to an excel file workbook.Save("ConfigAdjustmentPoints.xlsx");
' Create a new Workbook Dim workbook As New Workbook Dim worksheet As IWorksheet = workbook.Worksheets(0) ' Add a right arrow callout. Dim shape As IShape = worksheet.Shapes.AddShape(AutoShapeType.RightArrowCallout, 20, 20, 200, 100) Dim adjustments As IAdjustments = shape.Adjustments adjustments(0) = 0.5 ' arrow neck width adjustments(1) = 0.4 ' arrow head width adjustments(2) = 0.5 ' arrow head height adjustments(3) = 0.6 ' text box width ' save to an excel file workbook.Save("ConfigAdjustmentPoints.xlsx")