GroupDocsGists
10/19/2017 - 10:59 AM

RemoveHyperlinksWord.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)(Utilities.MapSourceFilePath(FilePath))
    ' Replace hyperlink
    doc.Sections(0).Shapes(0).Hyperlink = "https://www.groupdocs.com/"

    ' Remove hyperlink
    doc.Sections(0).Shapes(1).Hyperlink = Nothing

    doc.Save()