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

Represents the UI layer for managing comments in Telerik documentation.

Definition

Namespace:Telerik.Windows.Documents.UI.Layers

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class CommentsUILayer : IUILayer

Inheritance: objectCommentsUILayer

Implements: IUILayer

Constructors

C#
public CommentsUILayer(IUILayerContainer pagePresenter)
Parameters:pagePresenterIUILayerContainer

Properties

Gets or sets the current update context for the Comments UI layer.

C#
public UILayerUpdateContext CurrentUpdateContext { get; }
Property Value:

The current update context, which provides information and state for updates.

Gets or sets a value indicating whether the Comments User Interface (UI) layer is visible for hit testing. When set to true, the layer will respond to user interactions.

C#
public bool IsHitTestVisible { get; set; }
Property Value:

A boolean value that indicates the hit test visibility state of the Comments UI layer.

Implements: IUILayer.IsHitTestVisible

Gets the name of the Comments UI Layer.

C#
public virtual string Name { get; }

Implements: IUILayer.Name

C#
protected ObjectPool ObjectPool { get; }

Gets an enumerable collection of providers from the Comments UI Layer.

C#
public virtual IEnumerable<AnnotationMarkerLayoutBox> ProvidersEnumerable { get; }

Determines whether the Comments UI Layer should clip its contents.

C#
public virtual bool ShouldClip { get; }

Implements: IUILayer.ShouldClip

Determines whether the Comments UI layer should update when it has not been invalidated.

C#
public virtual bool ShouldUpdateWhenNotInvalidated { get; }

Implements: IUILayer.ShouldUpdateWhenNotInvalidated

Offset of the view from the initial point (0, 0) generally related to scroll offset

C#
public PointF ViewOffset { get; }
C#
protected bool ViewOffsetChanged { get; }

Gets the rectangle currently visible

C#
protected RectangleF ViewPort { get; }
C#
protected bool ViewportChanged { get; }

Methods

Adds a child element to the Comments UI Layer.

C#
public void AddChild(FrameworkElement uiElement)
Parameters:uiElementFrameworkElement

The child FrameworkElement to be added to the layer.

Arranges the children of the Comments UI layer based on the current layout settings.

C#
public void ArrangeChildren()

Implements: IUILayer.ArrangeChildren()

Clears all child elements from the Comments UI Layer.

C#
public void ClearChildren()

Implements: IUILayer.ClearChildren()

Remarks:

This method removes all the comment-related visual elements from the UI layer, effectively resetting its state to an empty state.

Executes actions that need to be performed when the presentation changes.

C#
public void DoOnPresentationChanged()

Implements: IUILayer.DoOnPresentationChanged()

Remarks:

This method is typically called internally to update the UI and re-render the comment layers when there are changes to the presentation.

Retrieves the user interface element associated with the Comments UI layer.

C#
public UIElement GetLayerUIElement()
Returns:

UIElement

The UI element of type T that represents the Comments layer.

Implements: IUILayer.GetLayerUIElement()

Removes a specified child element from the Comments UI Layer.

C#
public void RemoveChild(FrameworkElement existingElement)
Parameters:existingElementFrameworkElement

The child element to be removed from the layer.

Unregisters a child user interface element from the comments UI layer.

C#
public void UnregisterChildUIElement(FrameworkElement existingElement)
Parameters:existingElementFrameworkElement

The FrameworkElement that represents the child UI element to be unregistered.

C#
protected virtual void UpdateUI()

Updates the viewport for the Comments UI layer based on the specified position and bounds.

C#
public void UpdateViewPort(PointF viewOffset, RectangleF viewPort, ObjectPool uiElementPool)
Parameters:viewOffsetPointF

A PointF representing the position of the viewport.

viewPortRectangleF

A RectangleF defining the dimensions of the viewport.

uiElementPoolObjectPool

An instance of ObjectPool used for managing objects within the Comments UI layer.

Updates the viewport to reflect changes in the specified rectangle.

C#
public void UpdateViewPort(RectangleF viewPort)
Parameters:viewPortRectangleF

The rectangle defining the new viewport area.

Updates the viewport of the comment layer based on the specified update context.

C#
public void UpdateViewPort(UILayerUpdateContext context)
Parameters:contextUILayerUpdateContext

The context containing the information needed to update the viewport.

Implements: IUILayer.UpdateViewPort(UILayerUpdateContext)