usmanazizgroupdocs
4/17/2017 - 9:46 AM

Documents-AddWatermarkWithWordsShapeSettings.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As WordsDocument = Document.Load(Of WordsDocument)("D:\test.docx")
    Dim watermark As New TextWatermark("Test watermark", New Font("Arial", 19))
    Dim shapeSettings As 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()
End Using