GroupDocs.Watermark for .NET API

Edit Your Excel Spreadsheets Watermarks: .NET Efficiency

Elevate your document security with our customizable watermarking tool designed for .NET efficiency. Edit Excel watermarks effortlessly.

Edit watermarks in Excel documents using .NET

GroupDocs.Watermark for .NET empowers .NET developers to effortlessly edit watermarks within various Excel documents. Here’s a simplified guide how to use our API in your application:

  1. Begin by passing your Excel file as a parameter to the Watermarker class constructor. You can provide the file either as a byte stream, a file stream, or a local disk path.
  2. Next, locate the specific watermarks that require editing. Utilize the SearchCriteria to identify watermarks with the corresponding properties previously added to the document.
  3. Following the search, you’ll obtain a list of relevant watermarks. You can then customize their properties, such as size, page alignment, text, color, image content, and more. This grants you extensive control over your data.
  4. Once you’ve completed editing the watermarks, save the updated document. You can utilize a local file path or a stream to store the final result.
// Edit EXCEL text watermark

// Make Watermarker providing EXCEL file
using (Watermarker watermarker = new Watermarker("input.xslx"))
{
    // Construct the TextSearchCriteria and get text watermarks
    TextSearchCriteria searchCriteria = new TextSearchCriteria("test", false);
    PossibleWatermarkCollection watermarks = watermarker.Search(searchCriteria);

    foreach (PossibleWatermark watermark in watermarks)
    {
         // Edit text watermark
         watermark.FormattedTextFragments.Clear();
         watermark.FormattedTextFragments.Add("passed", 
            new Font("Calibri", 19, FontStyle.Bold), Color.Red, Color.Aqua);
    }

    // Save the document
    watermarker.Save("output.xslx");
}
dotnet add package GroupDocs.Watermark
click to copy
copied
More examples Documentation

Learn more about watermarks modification

Empower your .NET applications with our library and add, edit, remove, or search for watermarks within various file formats.

Edit Watermark

Watermark Files for Your Business

Use GroupDocs.Watermark for .NET to watermark files and documents. Add and manage watermarks without extra efforts implementing our API in your applications. Search, edit and remove previously added watermarks.

Fine-Tune Watermarks for Your Requirements

Our API offers a comprehensive set of customization options. Effortlessly modify aspects like size, orientation, color scheme, font family, and more to create the ideal watermark.

Leverage Document-Specific Features

Depending on the file format you’re using, you can incorporate built-in functionalities. These may include document background, annotations, headers, or other elements to serve as watermark containers.

Excel watermark text edit

This example shows how to edit text for particular watermarks in Excel Worksheets

C#


    //  Load XLSX spreadsheet
    var loadOptions = new SpreadsheetLoadOptions();
    using (Watermarker watermarker = new Watermarker("source.xlsx", loadOptions))
    {
        //  Load spreadsheet content
        SpreadsheetContent content = watermarker.GetContent<SpreadsheetContent>();

        //  Edit watermark inner text
        foreach (SpreadsheetShape shape in content.Worksheets[0].Shapes)
        {
            if (shape.Text == "GroupDocs 2016")
            {
                shape.Text = "GroupDocs 2017";
            }
        }

        //  Save output result
        watermarker.save("result.xlsx");
    }

GroupDocs.Watermark for .NET Library

Edit Excel Watermarks With Our Tool: Our GroupDocs.Watermark for .NET tools offer efficient strategies to enhance and protect your documents. With various features for .NET developers, managing watermarks becomes a breeze, ensuring document security and authenticity.
Learn more
About illustration

Ready to get started?

Download GroupDocs.Watermark for free or get a trial license for full access!

Useful resources

Explore documentation, code samples, and community support to enhance your experience.

Customize Your Watermarks in Other Formats

Watermark a variety of document formats to your needs with GroupDocs.Watermark for .NET.

Temporary license tips

1
Sign up with your work email.
Free mail services are not allowed.
2
Use Get a temporary license button on the second step.
 English