# WatermarkParams Class

> Watermark settings control the appearance of a watermark in a PDF.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/WatermarkParams
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class WatermarkParams : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Watermark settings control the appearance of a watermark in a PDF.

**Referenced by:** [`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.md)

**Uses types:** [`HorizontalAlignment`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/HorizontalAlignment.md), [`PageRange`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/PageRange.md), [`VerticalAlignment`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/VerticalAlignment.md), [`WatermarkDrawOption`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/WatermarkDrawOption.md)

## Constructors

### WatermarkParams

```csharp
Datalogics.PDFL.WatermarkParams.WatermarkParams()
```

*constructor*

Construct default WatermarkParams.

Initializes with rotation 0, full page range, opacity 1.0, scale 0.5, zOrderTop true, showOnPrint true, showOnScreen true, centered alignment, and the TryAnnotation draw option.

## Properties

### FixedPrint

```csharp
bool Datalogics.PDFL.WatermarkParams.FixedPrint { get; set; }
```

A boolean specifying whether this watermark is a FixedPrint watermark. FixedPrint watermarks maintain their size and position regardless of the dimensions of the target media.

### HorizAlign

```csharp
HorizontalAlignment Datalogics.PDFL.WatermarkParams.HorizAlign { get; set; }
```

Get the horizontal alignment to be used when adding the watermark to a page.

Defaults to center alignment.

### HorizValue

```csharp
float Datalogics.PDFL.WatermarkParams.HorizValue { get; set; }
```

The horizontal offset value to be used when adding the watermark on a page. If percentageVals is true, this value is a percentage of the page width, with 1.0 meaning 100%. Otherwise this value is in user units.

### Opacity

```csharp
float Datalogics.PDFL.WatermarkParams.Opacity { get; set; }
```

The opacity to be used when adding the watermark, with 0.0 meaning fully transparent and 1.0 meaning fully opaque.

### PercentageVals

```csharp
bool Datalogics.PDFL.WatermarkParams.PercentageVals { get; set; }
```

A boolean specifying the units of horizValue and vertValue. If it is true, horizValue and vertValue represent percentages of the page dimensions. Otherwise horizValue and vertValue are in user units.

### Rotation

```csharp
float Datalogics.PDFL.WatermarkParams.Rotation { get; set; }
```

The counter-clockwise rotation, in degrees, to be used when adding the watermark.

### Scale

```csharp
float Datalogics.PDFL.WatermarkParams.Scale { get; set; }
```

The scale factor to be used when adding the watermark, with 1.0 meaning 100%.

### ShowOnPrint

```csharp
bool Datalogics.PDFL.WatermarkParams.ShowOnPrint { get; set; }
```

A boolean specifying whether the watermark should be printed.

### ShowOnScreen

```csharp
bool Datalogics.PDFL.WatermarkParams.ShowOnScreen { get; set; }
```

A boolean specifying whether the watermark should be visible when viewing on screen.

### TargetRange

```csharp
PageRange Datalogics.PDFL.WatermarkParams.TargetRange { get; }
```

The page range of the document to which the watermark should be added.

Defaults to all pages.

### VertAlign

```csharp
VerticalAlignment Datalogics.PDFL.WatermarkParams.VertAlign { get; set; }
```

Get the vertical alignment to be used when adding the watermark to a page.

Defaults to center alignment.

### VertValue

```csharp
float Datalogics.PDFL.WatermarkParams.VertValue { get; set; }
```

The vertical offset value to be used when adding the watermark on a page. If percentageVals is true, this value is a percentage of the page height, with 1.0 meaning 100%. Otherwise this value is in user units.

### WatermarkDrawOption

```csharp
WatermarkDrawOption Datalogics.PDFL.WatermarkParams.WatermarkDrawOption { get; set; }
```

Get the draw option to be used when adding the watermark to a page.

Controls whether the watermark is drawn as an annotation or form XObject.

### ZOrderTop

```csharp
bool Datalogics.PDFL.WatermarkParams.ZOrderTop { get; set; }
```

A boolean specifying where in the page z-order the watermark should be added. If it is true, the watermark is added to the front of the page; otherwise, it is added as a background.

This parameter is ignored if fixedPrint is true, as all FixedPrint watermarks are added to the front of the page.

## Methods

### Dispose

```csharp
void Datalogics.PDFL.WatermarkParams.Dispose()
```

**Returns:** `void`
