We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add new autoshape to a worksheet ?

Thread ID:





58505 Mar 24,2007 11:14 AM UTC Mar 26,2007 05:04 AM UTC WinForms 1
Tags: XlsIO
Petr Vones
Asked On March 24, 2007 11:14 AM UTC

I'd like to add new autoshape to a worksheet. I haven't found anything like worksheet.Shapes.AddAutoShape() or a way to modify ShapeType to ExcelShapeType.AutoShape.


Visual Studio 2005, Essential Studio

Melba Winshia [Syncfusion]
Replied On March 26, 2007 05:04 AM UTC

Hi Petr,

Thanks for your interest in Essential XlsIO.

Issue 1: (Add new autoshape)

Currently it is not possible to add new autoshape to a worksheet. Already we have a feature request regarding this issue. Here is the feature request link to keep track of the details


Issue 2:(Modify Shapes)

It is possible to modify shapes by using the following the code snippets. But the properties [Fill, Line etc] are only added in our latest version 4.4. Could you please upgrade to our latest version?

// Read the shape
IShape shape=sheet.Shapes[0];

// Format the Shape
shape.Fill.ForeColor = Color.Red;
shape.Line.ForeColorIndex = ExcelKnownColors.Yellow;
shape.Line.Style = ExcelShapeLineStyle.Line_Thick_Thin;
shape.Line.Weight = 3;
shape.Line.BeginArrowHeadStyle= ExcelShapeArrowStyle.LineArrowOpen;
shape.Line.EndArrowHeadStyle = ExcelShapeArrowStyle.LineArrowOpen;
shape.Line.BeginArrowheadLength = ExcelShapeArrowLength.ArrowHeadMedium;
shape.Line.EndArrowheadLength =ExcelShapeArrowLength.ArrowHeadLong;

Here is the sample for your reference:


Kindly let me know if you have any other questions.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon