GroupDocsGists
10/19/2017 - 11:05 AM

AddWatermarkToSection.cs

// For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
using (WordsDocument doc = Document.Load<WordsDocument>(Utilities.MapSourceFilePath (FilePath)))
{
    TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 19));

    // Add watermark to all headers of the first section
    doc.Sections[0].AddWatermark(watermark);

    doc.Save();
}