usmanazizgroupdocs
5/9/2017 - 3:16 PM

LockWatermarkShape.vb

' For complete examples and data files, please go to https://github.com/groupdocs-watermark/GroupDocs.Watermark-for-.NET
Using doc As DiagramDocument = Document.Load(Of DiagramDocument)(Utilities.MapSourceFilePath(FilePath))
    Dim watermark As New TextWatermark("Test watermark", New Font("Arial", 19))

    ' Editing of the shape in Visio is forbidden
    doc.AddWatermark(watermark, New DiagramShapeSettings() With { _
         .IsLocked = True _
    })

    doc.Save()
End Using