usmanazizgroupdocs
4/17/2017 - 10:04 AM

AddWatermarkWithWordsShapeSettings.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>(@"D:\test.docx"))
{
    TextWatermark watermark = new TextWatermark("Test watermark", new Font("Arial", 19));
    WordsShapeSettings shapeSettings = new WordsShapeSettings();

    // Set the shape name
    shapeSettings.Name = "Shape 1";

    // Set the descriptive (alternative) text that will be associated with the shape
    shapeSettings.AlternativeText = "Test watermark";

    doc.AddWatermark(watermark, shapeSettings);

    doc.Save();
}