New to Telerik UI for WPFStart a free 30-day trial

Represents a UI provider for managing watermarks in Telerik documents.

Definition

Namespace:Telerik.Windows.Documents.UI.UIProviders

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class WatermarkUIProvider : IUIProvider

Inheritance: objectWatermarkUIProvider

Implements: IUIProvider

Constructors

C#
public WatermarkUIProvider(SectionLayoutBox sectionBox)
Parameters:sectionBoxSectionLayoutBox

Properties

Gets the bounding rectangle for the watermark UI provider, which defines the area in which the watermark will be displayed.

C#
public RectangleF BoundingRectangle { get; }

Implements: IUIProvider.BoundingRectangle

Gets the clipping geometry used for the watermark.

C#
public Geometry ClippingGeometry { get; }

Gets the containing layer of the watermark UI provider.

C#
public IUILayer ContainingLayer { get; set; }

Implements: IUIProvider.ContainingLayer

Gets the current header for the watermark UI provider.

C#
public Header CurrentHeader { get; }

Gets the current update context for the watermark UI provider.

C#
public UILayerUpdateContext CurrentUpdateContext { get; }

Gets a value indicating whether the watermark UI provider has been invalidated.

C#
public bool IsInvalidated { get; }

Implements: IUIProvider.IsInvalidated

Gets a value indicating whether the watermark has been removed.

C#
public bool IsRemoved { get; }

Implements: IUIProvider.IsRemoved

Represents a section box in the Watermark UI provider, which is used to define the area for displaying a watermark in a document section.

C#
public SectionLayoutBox SectionBox { get; }

Methods

Arranges the watermark UI based on the provided update context.

C#
public void Arrange(UILayerUpdateContext uILayerUpdateContext)
Parameters:uILayerUpdateContextUILayerUpdateContext

The context that provides information for updating the UI layer.

Implements: IUIProvider.Arrange(UILayerUpdateContext)

Retrieves the UI elements associated with the watermark provider.

C#
public IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The context used for updating the UI layer.

Returns:

IEnumerable<UIElement>

A collection of UI elements related to the watermark.

Implements: IUIProvider.GetUIElements(UILayerUpdateContext)

Releases the elements associated with the Watermark UI provider.

C#
public void ReleaseElements()

Implements: IUIProvider.ReleaseElements()

Updates the user interface for the watermark provider based on the given update context.

C#
public void UpdateUI(UILayerUpdateContext uILayerUpdateContext)
Parameters:uILayerUpdateContextUILayerUpdateContext

The context that contains information about the UI layer update.

Implements: IUIProvider.UpdateUI(UILayerUpdateContext)