ClassWatermarkUIProvider
Represents a UI provider for managing watermarks in Telerik documents.
Definition
Namespace:Telerik.Windows.Documents.UI.UIProviders
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class WatermarkUIProvider : IUIProvider
Inheritance: objectWatermarkUIProvider
Implements:
Constructors
WatermarkUIProvider(SectionLayoutBox)
Declaration
public WatermarkUIProvider(SectionLayoutBox sectionBox)
Parameters
sectionBox
Properties
BoundingRectangle
Gets the bounding rectangle for the watermark UI provider, which defines the area in which the watermark will be displayed.
Declaration
public RectangleF BoundingRectangle { get; }
Property Value
Implements
ClippingGeometry
Gets the clipping geometry used for the watermark.
Declaration
public Geometry ClippingGeometry { get; }
Property Value
Geometry
ContainingLayer
Gets the containing layer of the watermark UI provider.
Declaration
public IUILayer ContainingLayer { get; set; }
Property Value
Implements
CurrentHeader
Gets the current header for the watermark UI provider.
CurrentUpdateContext
Gets the current update context for the watermark UI provider.
Declaration
public UILayerUpdateContext CurrentUpdateContext { get; }
Property Value
IsInvalidated
Gets a value indicating whether the watermark UI provider has been invalidated.
IsRemoved
Gets a value indicating whether the watermark has been removed.
SectionBox
Represents a section box in the Watermark UI provider, which is used to define the area for displaying a watermark in a document section.
Declaration
public SectionLayoutBox SectionBox { get; }
Property Value
Methods
Arrange(UILayerUpdateContext)
Arranges the watermark UI based on the provided update context.
Declaration
public void Arrange(UILayerUpdateContext uILayerUpdateContext)
Parameters
uILayerUpdateContext
The context that provides information for updating the UI layer.
Implements
GetUIElements(UILayerUpdateContext)
Retrieves the UI elements associated with the watermark provider.
Declaration
public IEnumerable<UIElement> GetUIElements(UILayerUpdateContext context)
Parameters
context
The context used for updating the UI layer.
Returns
IEnumerable<UIElement>
A collection of UI elements related to the watermark.
Implements
ReleaseElements()
Releases the elements associated with the Watermark UI provider.
Declaration
public void ReleaseElements()
Implements
UpdateUI(UILayerUpdateContext)
Updates the user interface for the watermark provider based on the given update context.
Declaration
public void UpdateUI(UILayerUpdateContext uILayerUpdateContext)
Parameters
uILayerUpdateContext
The context that contains information about the UI layer update.
Implements