usmanazizgroupdocs
4/17/2017 - 9:03 AM

WatermarkOperations-RemoveWatermark.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As Document = Document.Load(Utilities.MapSourceFilePath(XlsFilePath))
    Dim possibleWatermarks As PossibleWatermarkCollection = doc.FindWatermarks()

    ' Remove possible watermark at the specified index from the document.
    possibleWatermarks.RemoveAt(0)

    ' Remove specified possible watermark from the document.
    possibleWatermarks.Remove(possibleWatermarks(0))

    doc.Save()
End Using