Change Background Color in PowerPoint using C#

This quick tutorial guides on how to change background color in PowerPoint using C#. It assists in setting the IDE for working with this feature, a list of steps, and a sample code for changing the background color for PowerPoint presentation using C#. We will discuss the details of setting individual slide background color and master slide background color.

Steps to Change Background Color on PowerPoint using C#

  1. Set the IDE to use Aspose.Slides for .NET to change the background color
  2. Load or create a presentation for setting the color
  3. Access the first slide and set the background properties
  4. Set fill type, color, and background type
  5. Save the resultant PPT with the desired color

These steps define how to change background color in PowerPoint using C#. Commence the process by loading or creating a PowerPoint presentation and accessing the target slide in the loaded presentation. Access the background property of the selected slide and set parameters FillType, Color, and Type properties before saving the output.

Code to Change PPT Background Color using C#

This code has demonstrated how to change background color on PowerPoint using C#. We have set the background color of an individual slide, and you may change the colors of all the slides by iterating through the slides collection. If you want to change the background color of the master slide, access the Masters collection in the loaded presentation and set all the background properties similar to the individual slide demonstrated here.

This short article has taught us to change the background color. To add an image watermark in slides, refer to the article on how to add image watermark in PPTX presentation using C#.

 English