usmanazizgroupdocs
4/17/2017 - 10:07 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();
}