# Watermark

Watermarks are text or pictures that appear behind document text. They often add interest or identify the document status. You can see watermarks in Paged layout mode; they can be printed and exported to all rich-text formats, except HTML.

> tip More on the specifics of the format providers you can find [here](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/import-export/features-import-export).

## Using UI

**RadRichTextBox**'s predefined UI – **RadRichTextBoxRibbonUI** provides an easy way to insert watermarks. You can choose from several predefined watermarks:

![Rad Rich Text Box Features Watermark 01](https://www.telerik.com/products/wpf/documentation/assets/5ab8a9e289c10a86cedee77be95e0450/radrichtextbox_features_watermark_01.png)

Alternatively, you can create your custom watermark from text or picture through the *Insert custom watermark* option.

![Rad Rich Text Box Features Watermark 02](https://www.telerik.com/products/wpf/documentation/assets/8895c2296fc8e3461f07747d339e7844/radrichtextbox_features_watermark_02.png)

## Manipulating Watermarks Programmatically

There are two types of watermarks - text and image. Both of them are shown behind the contents of the documents - text, images, tables, etc. and are applied on a per document basis.

There is also a set of predefined textual watermarks - the most commonly used ones like ASAP, Urgent, Confidential, etc., that can be easily set in the following way:

```C#
	this.editor.SetWatermark(Telerik.Windows.Documents.Model.PredefinedWatermarkType.Confidential);
```

You can create custom watermarks using the **WatermarkTextSettings** and **WatermarkImageSettings** classes and the respective methods of **RadRichTextBox** - **SetWatermarkText()** and **SetWatermarkImage()**.

The following example demonstrates how to crate a text watermark and apply it to the document in the editor:

```C#
	WatermarkTextSettings textSettings = new WatermarkTextSettings();
        textSettings.Text = "Purple Watermark";
	textSettings.RotateAngle = 30;
	textSettings.Opacity = 1;
	textSettings.ForegroundColor = Colors.Purple;

	this.editor.SetWatermarkText(textSettings);
```

And this is how you create an image watermark and apply it:

```C#
	WatermarkImageSettings imageSettings = new WatermarkImageSettings();
        imageSettings.UriSource = uri; 
	imageSettings.Size = new Size(500, 665);

	this.editor.SetWatermarkImage(imageSettings);
```

> tip You can download a runnable project of the previous example from our online SDK repository: [Watermark SDK example](https://github.com/telerik/xaml-sdk/tree/master/RichTextBox/Watermark).

## See Also

* [RadRichTextBoxRibbonUI](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/ui-for-applying-rich-text-formatting/features-radrichtextboxribbonui)

* [Formatting API](https://www.telerik.com/products/wpf/documentation/controls/radrichtextbox/getting-started/features-formatting-api)
