DiagramPageWatermarkOptions
Contents
[
Hide
]
DiagramPageWatermarkOptions class
Represents watermark adding options when adding shape watermark to a particular page of a Visio document.
public sealed class DiagramPageWatermarkOptions : DiagramWatermarkOptions
Constructors
Name | Description |
---|---|
DiagramPageWatermarkOptions() | Initializes a new instance of the DiagramPageWatermarkOptions class. |
Properties
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. |
Remarks
Learn more:
Examples
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();
}
See Also
- class DiagramWatermarkOptions
- namespace GroupDocs.Watermark.Options.Diagram
- assembly GroupDocs.Watermark