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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to add images to a table cell using Essential Presentation library

Platform: WinForms |
Control: Presentation

Essential Presentation library supports adding background images for table cells. You can add a background image for a table cell by choosing the “FillType” as “Picture” for the cell’s background.


Please find the code example for this as below.


//Create an instance of PowerPoint Presentation 
IPresentation presentation = Presentation.Create();
//Add a blank slide to the presentation.
ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank);
//Add a table with 4 rows and 4 columns with specified size.
ITable table = slide.Tables.AddTable(4, 4, 50, 50, 500, 400);
//Get an image instance from file.
Syncfusion.Drawing.Image image = Syncfusion.Drawing.Image.FromFile("image.png");
//Get the instance of first cell from first row.
ICell cell = table.Rows[0].Cells[0] as ICell;
//Set fill type as Picture.
cell.Fill.FillType = FillType.Picture;
//Set image bytes for picture fill image.
cell.Fill.PictureFill.ImageBytes = image.ImageData;
//Save presentation with specified file name.



You can find the complete sample here.


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile