Message-ID: <589196937.10521.1711727105772.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_10520_762074235.1711727105772" ------=_Part_10520_762074235.1711727105772 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Watermark

Watermark

Description

=20

A Watermark object represents a = document's watermark, which is an image or text that when printed appears i= n the background of a document. The property Document.Watermark returns a Watermark obje= ct.

=20
C#
=20
public sealed class Watermark
=20
=20
vb.net
=20
Public NotInheritable Class Watermark
=20
=20

Examples

=20
C#
=20

WordApplication app =3D new WordApplication();
Document doc =3D app.Create();
Watermark wmark =3D doc.Watermark;
=20
=20
vb.net
=20

Dim app As New WordApplication()
Dim doc As Document =3D app.Create()
Dim wmark As Watermark =3D doc.Watermark
=20
=20

Properties

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20

Name

Description

Co= lor

Sets or returns the color of the watermark. =20

FontName

Sets or returns the font of watermark text. =20

Im= age

Sets or returns an image to use as the watermar= k.

Sc= ale

Sets or returns the size of a watermark image a= s a percentage of its actual size in the source file.

Semitransparent

Sets or returns whether a text watermark will b= e semitransparent or not.

Siz= e

Sets or returns the size of watermark text. =20

Tex= t

Sets or returns text to use as the document's w= atermark.

= Washout

Sets or returns whether an image watermark will= be faded or not.

WatermarkLayout

Sets or returns the layout of watermark text. <= /td>=20

WatermarkType

Returns the watermark's type, which may be imag= e, text, or none.
=20

Methods

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20

Name

Description

ClearWatermark()

Clears all properties assigned to the watermark= .
Call this method to remove a watermark from the document.
=20

Nested Classes

=20
=20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20

Name

Description

L= ayout

Used to specify the layout for a text watermark= .

Typ= e

Used to specify a type of watermark.
------=_Part_10520_762074235.1711727105772--