DiagramShapeWatermarkOptions class
Leave feedback
On this page
Represents watermark adding options when adding shape watermark to a Visio document.
Learn more:
The DiagramShapeWatermarkOptions type exposes the following members:
| Constructor | Description |
|---|---|
| init | Initializes a new instance of the DiagramShapeWatermarkOptions class. |
| 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) |
| Field | Description |
|---|---|
| DEFAULT | Gets the default value for the class. (inherited from WatermarkOptions) |
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()
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.