Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Sometimes you need to insert some necessary shapes into the worksheet.You may need to insert the same shape in different positions of the worksheet.Or you need to batch insert shapes in the worksheet.
Do not worry! Aspose.Cells supports all these operations.
The shapes in excel are mainly divided into the following types:
This guide document will select one or two shapes from each type to make samples.Through these examples, you will learn how to use Aspose.Cells to insert the specified shape into the worksheet.
The shape of line belongs to the lines category.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a line in the worksheet.
The method returns a Shape object.
The following example shows how to insert line to a worksheet.
Execute the above code, you will get the following results:

The shape of line arrow belongs to the Lines category.It is a special case of line.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a line arrow in the worksheet.
The method returns a Shape object.
The following example shows how to insert line arrow to a worksheet.
Execute the above code, you will get the following results:

The shape of rectangle belongs to the Rectangles category.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a rectangle in the worksheet.
The method returns a Shape object.
The following example shows how to insert rectangle to a worksheet.
Execute the above code, you will get the following results:

The shape of cube belongs to the Basic Shapes category.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a cube in the worksheet.
The method returns a Shape object.
The following example shows how to insert cube to a worksheet.
Execute the above code, you will get the following results:

The shape of callout quad arrow belongs to the Block Arrows category.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a callout quad arrow in the worksheet.
The method returns a Shape object.
The following example shows how to insert callout quad arrow to a worksheet.
Execute the above code, you will get the following results:

The shape of multiplication sign belongs to the Equation Shapes category.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a multiplication sign in the worksheet.
The method returns a Shape object.
The following example shows how to insert multiplication sign to a worksheet.
Execute the above code, you will get the following results:

The shape of multidocument belongs to the FlowCharts category.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a multidocument in the worksheet.
The method returns a Shape object.
The following example shows how to insert multidocument to a worksheet.
Execute the above code, you will get the following results:

The shape of Five-pointed star belongs to the Stars and Banners category.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a Five-pointed star in the worksheet.
The method returns a Shape object.
The following example shows how to insert Five-pointed star to a worksheet.
Execute the above code, you will get the following results:

The shape of thought bubble cloud belongs to the Callouts category.
In Microsoft Excel (for example 2007):

Using Aspose.Cells
You can use the following method to insert a thought bubble cloud in the worksheet.
The method returns a Shape object.
The following example shows how to insert thought bubble cloud to a worksheet.
Execute the above code, you will get the following results:
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.