Forums     Knowledge Base     OfficeWriter Online     
 
 
This documentation is for
OfficeWriter v3.8.1
.NET Platform

View Docs for Another
Version or Platform

Programmer's Reference > WordApplication API > Watermark

The Watermark Object


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.

Example:

[csharp]
WordApplication app = new WordApplication();
Document doc = app.Create();
Watermark wmark = doc.Watermark;


Watermark Enumerations

NameDescription
Watermark.LayoutUsed to specify the layout for a text watermark.
Watermark.TypeUsed to specify a type of watermark.


Watermark Properties

Property Type Access Description
Color System.Drawing.Color read
write
Sets or returns the color of the watermark.
FontName String read
write
Sets or returns the font of watermark text.
Image System.Drawing.Color read
write
Sets or returns an image to use as the watermark.
Scale int read
write
Sets or returns the size of a watermark image as a percentage of its actual size in the source file.
Semitransparent boolean read
write
Sets or returns whether a text watermark will be semitransparent or not.
Size double read
write
Sets or returns the size of watermark text.
Text String read
write
Sets or returns text to use as the document's watermark.
Washout boolean read
write
Sets or returns whether an image watermark will be faded or not.
WatermarkLayout Watermark.Layout read
write
Sets or returns the layout of watermark text.
WatermarkType Watermark.Type read


Watermark Methods

ReturnsSignature and Description
void ClearWatermark ( )



Copyright 2007 © SoftArtisans, Inc. All Rights Reserved.