New to Telerik Document ProcessingStart a free 30-day trial

Manages the collection of watermarks in a document, supporting registration, removal, and enumeration.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model.Watermarks

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public class WatermarkCollection : IEnumerable<Watermark>, IEnumerable

Inheritance: objectWatermarkCollection

Implements: IEnumerableIEnumerable<Watermark>

Constructors

Creates a new watermark collection for the specified document.

C#
public WatermarkCollection(RadFlowDocument document)
Parameters:documentRadFlowDocument

The document.

Methods

Registers the specified watermark in the collection and associates it with this document.

C#
public void Add(Watermark watermark)
Parameters:watermarkWatermark

The watermark.

Removes all watermarks from the collection.

C#
public void Clear()

Returns an enumerator for iterating through all watermarks in the collection.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

Implements: IEnumerable.GetEnumerator()

Unregisters the specified watermark from the collection and returns true if successful.

C#
public bool Remove(Watermark watermark)
Parameters:watermarkWatermark

The watermark.

Returns:

bool

Properties

Gets the watermark at the specified zero-based index.

C#
public Watermark this[int index] { get; }
Parameters:indexintProperty Value:

The watermark.