Skip to end of metadata
Go to start of metadata
Contents Summary

The code samples in this article use some of the methods defined in Working with Common Utilities.

In the previous section, we described three kinds of watermark that can be added to an Excel document using GroupDocs.Watermark API:

  • Shapes
  • Backgrounds
  • Headers&Footers

Here we will focus on how to work with backgrounds.

Working with Backgrounds

Extracting Information about all Worksheet Backgrounds

The API allows you to extract information about all the worksheet backgrounds in an Excel document as shown in the following code sample. 

Removing a Particular Background

Following code sample shows how to remove the background of a particular worksheet.

Adding Watermark to all Backgrounds

You can also add watermark to the background images that belong to an Excel document. Following code sample adds watermark to all the background images.

Settings Background Image for Charts

GroupDocs.Watermark also allows you to set the background image for a chart inside an Excel document. Following code sample shows how to achieve this functionality.

  • No labels