Microsoft® Excel shapes insertion via .NET

Create Excel documents and insert shapes using server-side APIs in .NET-based applications.

 

In excel you can add shapes such as boxes, circles and arrows to documents, emails, slides and spreadsheets.To free you from a lot of manual insertion, the .NET Excel Library API provides the same functionality.These APIs are very easy to use, usually only one line of code is needed to insert a specific shape, and a few lines of code can complete the insertion of batches of shapes.

Insert shapes in Excel File

Insertting shapes using these APIs is simple. Process is, Create Workbook class object and select the first worksheet or the relevant sheet by providing its index. Add a shape to the worksheet by using shapecollection ’s Add method.

C# Code to Insert Shape in Excel