DiagramPageWatermarkOptions
Leave feedback
On this page
Represents watermark adding options when adding shape watermark to a particular page of a Visio document.
public sealed class DiagramPageWatermarkOptions : DiagramWatermarkOptions
| Name | Description |
|---|---|
| DiagramPageWatermarkOptions() | Initializes a new instance of the DiagramPageWatermarkOptions class. |
| Name | Description |
|---|---|
| IsLocked { get; set; } | Gets or sets a value indicating whether an editing of the shape in Visio is forbidden. |
| PageIndex { get; set; } | Gets or sets the page index to add watermark to. |
Learn more:
Add a protected watermark to the first page of a Visio document.
DiagramLoadOptions loadOptions = new DiagramLoadOptions();
using (Watermarker watermarker = new Watermarker(@"D:\test.vsdx", loadOptions))
{
TextWatermark watermark = new TextWatermark("watermark test", new Font("Arial", 42));
DiagramPageWatermarkOptions options = new DiagramPageWatermarkOptions();
options.IsLocked = true;
options.PageIndex = 0;
watermarker.Add(watermark, options);
watermarker.Save();
}
- class DiagramWatermarkOptions
- namespace GroupDocs.Watermark.Options.Diagram
- assembly GroupDocs.Watermark
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.