Description
A Watermark object represents a document's watermark, which is an image or text that when printed appears in the background of a document. The property Document.Watermark returns a Watermark object.
C#
public sealed class Watermark
vb.net
Public NotInheritable Class Watermark
Examples
C#
WordApplication app = new WordApplication(); Document doc = app.Create(); Watermark wmark = doc.Watermark;
vb.net
Dim app As New WordApplication() Dim doc As Document = app.Create() Dim wmark As Watermark = doc.Watermark
Properties
Name |
Description |
|---|---|
| Sets or returns the color of the watermark. | |
| Sets or returns the font of watermark text. | |
| Sets or returns an image to use as the watermark. | |
| Sets or returns the size of a watermark image as a percentage of its actual size in the source file. | |
| Sets or returns whether a text watermark will be semitransparent or not. | |
| Sets or returns the size of watermark text. | |
| Sets or returns text to use as the document's watermark. | |
| Sets or returns whether an image watermark will be faded or not. | |
| Sets or returns the layout of watermark text. | |
| Returns the watermark's type, which may be image, text, or none. |
Methods
Name |
Description |
|---|---|
| Clears all properties assigned to the watermark. Call this method to remove a watermark from the document. |
