Moving picture with cells

Hi Guys,

Is there a way to set an image added using AddPicture to move but not resize with the cells it has been added to?

Regards,
Malachy

1 Reply

MW Melba Winshia Syncfusion Team August 2, 2006 03:22 PM UTC

Hi Malachy,

Thank You for using Syncfusion Essential XlsIO. You can move the picture to another location by using the following code snippet.

[c#]
//Insert Image
sheet.Pictures.AddPicture(1,1,"../../Data/excel_ico.gif");

//Reposition Image
sheet.Pictures[0].Left = 200;
sheet.Pictures[0].Top = 200;

Here is a sample for your reference:

AddPicture.zip


Regards,
Melba

Loader.
Up arrow icon