Provides a canvas and viewport transform for layers that rebuild document decorations from visible layout.
Definition
Namespace:Telerik.WinForms.Documents.UI.Layers
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class DecorationUILayerBase : IUILayer
Inheritance: objectDecorationUILayerBase
Derived Classes:
Implements:
Constructors
Initializes the decoration canvas and assigns its automation ID from Name.
public DecorationUILayerBase()
Properties
Gets the document associated with the most recent viewport update.
protected RadDocument Document { get; }
Gets or sets whether the decoration canvas participates in hit testing.
public virtual bool IsHitTestVisible { get; set; }
Implements:
Gets the identifier used for the layer and its automation ID.
public abstract string Name { get; }
Implements:
Gets whether the presenter clips this layer to the displayed section's bounds; the default is true.
public virtual bool ShouldClip { get; }
Implements:
Gets whether the layer updates for viewport changes when it is not otherwise invalidated; the default is false.
public virtual bool ShouldUpdateWhenNotInvalidated { get; }
Implements:
Methods
Applies layout rounding and the current view-offset transform, then adds a decoration to the layer canvas.
protected void AddDecorationElement(UIElement element)
The decoration visual to add.
Arranges child visuals; the base implementation does nothing because it applies a shared viewport transform.
public virtual void ArrangeChildren()
Implements:
Removes all current decoration visuals from the canvas.
protected virtual void Clear()
Clears the decorations and detaches the layer from its current document.
public virtual void ClearChildren()
Implements:
Notifies the layer that its presenter changed; the base implementation does nothing.
public virtual void DoOnPresentationChanged()
Implements:
Gets the canvas that hosts this layer's decorations.
Runs before the layer switches away from its current document.
protected virtual void OnDocumentChanging()
Rebuilds this layer's decoration visuals for the supplied viewport.
public abstract void UpdateUIViewPortOverride(UILayerUpdateContext context)
The current layer-update context.
Updates the tracked document and view-offset transform, clears old visuals, and rebuilds decorations for the viewport.
public void UpdateViewPort(UILayerUpdateContext context)
The current layer-update context.
Implements: