Class
CommentsUILayer

Represents the UI layer for managing comments in Telerik documentation.

Definition

Namespace:Telerik.Windows.Documents.UI.Layers

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class CommentsUILayer : IUILayer

Inheritance: objectCommentsUILayer

Implements: IUILayer

Constructors

CommentsUILayer(IUILayerContainer)

Declaration

cs-api-definition
public CommentsUILayer(IUILayerContainer pagePresenter)

Parameters

pagePresenter

IUILayerContainer

Properties

CurrentUpdateContext

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

Declaration

cs-api-definition
public UILayerUpdateContext CurrentUpdateContext { get; }

Property Value

UILayerUpdateContext

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

IsHitTestVisible

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.

Declaration

cs-api-definition
public bool IsHitTestVisible { get; set; }

Property Value

bool

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

Implements IUILayer.IsHitTestVisible

Name

Gets the name of the Comments UI Layer.

Declaration

cs-api-definition
public virtual string Name { get; }

Property Value

string

Implements IUILayer.Name

ObjectPool

Declaration

cs-api-definition
protected ObjectPool ObjectPool { get; }

Property Value

ObjectPool

ProvidersEnumerable

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

Declaration

cs-api-definition
public virtual IEnumerable<AnnotationMarkerLayoutBox> ProvidersEnumerable { get; }

Property Value

IEnumerable<AnnotationMarkerLayoutBox>

ShouldClip

Determines whether the Comments UI Layer should clip its contents.

Declaration

cs-api-definition
public virtual bool ShouldClip { get; }

Property Value

bool

Implements IUILayer.ShouldClip

ShouldUpdateWhenNotInvalidated

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

Declaration

cs-api-definition
public virtual bool ShouldUpdateWhenNotInvalidated { get; }

Property Value

bool

Implements IUILayer.ShouldUpdateWhenNotInvalidated

ViewOffset

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

Declaration

cs-api-definition
public PointF ViewOffset { get; }

Property Value

PointF

ViewOffsetChanged

Declaration

cs-api-definition
protected bool ViewOffsetChanged { get; }

Property Value

bool

ViewPort

Gets the rectangle currently visible

Declaration

cs-api-definition
protected RectangleF ViewPort { get; }

Property Value

RectangleF

ViewportChanged

Declaration

cs-api-definition
protected bool ViewportChanged { get; }

Property Value

bool

Methods

AddChild(FrameworkElement)

Adds a child element to the Comments UI Layer.

Declaration

cs-api-definition
public void AddChild(FrameworkElement uiElement)

Parameters

uiElement

FrameworkElement

The child FrameworkElement to be added to the layer.

ArrangeChildren()

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

Declaration

cs-api-definition
public void ArrangeChildren()

Implements IUILayer.ArrangeChildren()

ClearChildren()

Clears all child elements from the Comments UI Layer.

Declaration

cs-api-definition
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.

DoOnPresentationChanged()

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

Declaration

cs-api-definition
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.

GetLayerUIElement()

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

Declaration

cs-api-definition
public UIElement GetLayerUIElement()

Returns

UIElement

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

Implements IUILayer.GetLayerUIElement()

RemoveChild(FrameworkElement)

Removes a specified child element from the Comments UI Layer.

Declaration

cs-api-definition
public void RemoveChild(FrameworkElement existingElement)

Parameters

existingElement

FrameworkElement

The child element to be removed from the layer.

UnregisterChildUIElement(FrameworkElement)

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

Declaration

cs-api-definition
public void UnregisterChildUIElement(FrameworkElement existingElement)

Parameters

existingElement

FrameworkElement

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

UpdateUI()

Declaration

cs-api-definition
protected virtual void UpdateUI()

UpdateViewPort(PointF, RectangleF, ObjectPool)

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

Declaration

cs-api-definition
public void UpdateViewPort(PointF viewOffset, RectangleF viewPort, ObjectPool uiElementPool)

Parameters

viewOffset

PointF

A PointF representing the position of the viewport.

viewPort

RectangleF

A RectangleF defining the dimensions of the viewport.

uiElementPool

ObjectPool

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

UpdateViewPort(RectangleF)

Updates the viewport to reflect changes in the specified rectangle.

Declaration

cs-api-definition
public void UpdateViewPort(RectangleF viewPort)

Parameters

viewPort

RectangleF

The rectangle defining the new viewport area.

UpdateViewPort(UILayerUpdateContext)

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

Declaration

cs-api-definition
public void UpdateViewPort(UILayerUpdateContext context)

Parameters

context

UILayerUpdateContext

The context containing the information needed to update the viewport.

Implements IUILayer.UpdateViewPort(UILayerUpdateContext)