DiagramShapeWatermarkOptions class

DiagramShapeWatermarkOptions class

Represents watermark adding options when adding shape watermark to a Visio document.

Learn more:

The DiagramShapeWatermarkOptions type exposes the following members:

Constructors

Constructor Description
init Initializes a new instance of the DiagramShapeWatermarkOptions class.

Properties

Property Description
placement_type The value specifying to what pages a watermark should be added.
is_locked The lock state of the shape in Visio. If True, shape editing will be forbidden. (inherited from DiagramWatermarkOptions)

Fields

Field Description
DEFAULT Gets the default value for the class. (inherited from WatermarkOptions)

Example

from groupdocs.watermark import Watermarker, DiagramLoadOptions, TextWatermark, DiagramShapeWatermarkOptions, DiagramWatermarkPlacementType
from System.Drawing import Font

load_options = DiagramLoadOptions()
with Watermarker(r"D:\test.vsdx", load_options) as watermarker:
    watermark = TextWatermark("watermark test", Font("Arial", 42))

    options = DiagramShapeWatermarkOptions()
    options.IsLocked = True
    options.PlacementType = DiagramWatermarkPlacementType.AllPages  # default

    watermarker.add(watermark, options)
    watermarker.save()

See Also