Watermark

Overview

Watermark is a class in Aspose.Words FOSS for .NET.

Represents class to work with document watermark.

This class provides 7 methods for working with Watermark objects in .NET programs. Available methods include: Remove, SetImage, SetText. All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package. Properties: Type.

Properties

NameTypeAccessDescription
TypeWatermarkTypeReadGets the watermark type.

Methods

SignatureDescription
SetText(text: string)Adds Text watermark into the document.
SetText(text: string, options: TextWatermarkOptions)Adds Text watermark into the document.
SetImage(image: Image)Adds Image watermark into the document.
SetImage(image: Image, options: ImageWatermarkOptions)Adds Image watermark into the document.
SetImage(imagePath: string, options: ImageWatermarkOptions)Adds Image watermark into the document.
SetImage(imageStream: Stream, options: ImageWatermarkOptions)Adds Image watermark into the document.
Remove()Removes the watermark.

See Also