Class
CommentEndUIProvider

Provides a UI provider for the end of a comment in the document model.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class CommentEndUIProvider : CommentUIProviderBase

Inheritance: objectCommentUIProviderBaseCommentEndUIProvider

Inherited Members CommentUIProviderBase.GetBorderBracket(AnnotationMarkerLayoutBox)

Constructors

CommentEndUIProvider()

Declaration

cs-api-definition
public CommentEndUIProvider()

Properties

Instance

Gets the singleton instance of the CommentEndUIProvider.

Declaration

cs-api-definition
public static CommentUIProviderBase Instance { get; }

Property Value

CommentUIProviderBase

Methods

ArrangeUIElement(IUILayerContainer, CommentsPaneLayout, FrameworkElement, AnnotationMarkerLayoutBox, SectionLayoutBox, PointF)

Arranges the UI element for the comment end based on the specified layout parameters.

Declaration

cs-api-definition
public override void ArrangeUIElement(IUILayerContainer pagePresenter, CommentsPaneLayout layout, FrameworkElement element, AnnotationMarkerLayoutBox annotationMarkerBox, SectionLayoutBox sectionBox, PointF viewOffset)

Parameters

pagePresenter

IUILayerContainer

The UI layer container that holds the UI elements.

layout

CommentsPaneLayout

The layout settings for the comments pane.

element

FrameworkElement

The framework element to be arranged.

annotationMarkerBox

AnnotationMarkerLayoutBox

The layout box for the annotation marker.

sectionBox

SectionLayoutBox

The layout box for the section.

viewOffset

PointF

The point at which to position the UI element.

Overrides CommentUIProviderBase.ArrangeUIElement(IUILayerContainer, CommentsPaneLayout, FrameworkElement, AnnotationMarkerLayoutBox, SectionLayoutBox, PointF)

CreateUIElements(IUILayerContainer, AnnotationMarkerLayoutBox, ObjectPool, RectangleF)

Creates UI elements for the comment end marker in the specified layout box.

Declaration

cs-api-definition
public override IEnumerable<FrameworkElement> CreateUIElements(IUILayerContainer pagePresenter, AnnotationMarkerLayoutBox markerBox, ObjectPool pool, RectangleF viewPort)

Parameters

pagePresenter

IUILayerContainer

The container that provides the UI layer for rendering the elements.

markerBox

AnnotationMarkerLayoutBox

The layout box where the annotation marker is positioned.

pool

ObjectPool

The pool of reusable UI objects to optimize performance.

viewPort

RectangleF

The rectangle that defines the bounds for the UI elements to be created.

Returns

IEnumerable<FrameworkElement>

A list of UI elements created for the comment end marker.

Overrides CommentUIProviderBase.CreateUIElements(IUILayerContainer, AnnotationMarkerLayoutBox, ObjectPool, RectangleF)

ElementRemovingFromUI(FrameworkElement)

Notifies the provider that a UI element is being removed from the comment end.

Declaration

cs-api-definition
public override void ElementRemovingFromUI(FrameworkElement element)

Parameters

element

FrameworkElement

The FrameworkElement that is being removed from the UI.

Overrides CommentUIProviderBase.ElementRemovingFromUI(FrameworkElement)

HasVisibleElements(CommentsPaneLayout, AnnotationMarkerLayoutBox, SectionLayoutBox, RectangleF, PointF)

Determines whether there are visible elements in the specified comments pane layout and annotation marker layout.

Declaration

cs-api-definition
public override bool HasVisibleElements(CommentsPaneLayout layout, AnnotationMarkerLayoutBox annotationMarkerBox, SectionLayoutBox sectionBox, RectangleF viewPort, PointF viewOffset)

Parameters

layout

CommentsPaneLayout

The comments pane layout to check for visible elements.

annotationMarkerBox

AnnotationMarkerLayoutBox

The layout box of the annotation marker.

sectionBox

SectionLayoutBox

The layout box of the section.

viewPort

RectangleF

The rectangle that defines the area of interest.

viewOffset

PointF

The point that is checked against the visible elements.

Returns

bool

Returns true if there are visible elements; otherwise, false.

Overrides CommentUIProviderBase.HasVisibleElements(CommentsPaneLayout, AnnotationMarkerLayoutBox, SectionLayoutBox, RectangleF, PointF)

UpdateUIElement(IUILayerContainer, CommentsPaneLayout, FrameworkElement, AnnotationMarkerLayoutBox, SectionLayoutBox, PointF)

Updates the user interface element for a comment based on the provided parameters.

Declaration

cs-api-definition
public override void UpdateUIElement(IUILayerContainer pagePresenter, CommentsPaneLayout layout, FrameworkElement element, AnnotationMarkerLayoutBox annotationMarkerBox, SectionLayoutBox sectionBox, PointF viewOffset)

Parameters

pagePresenter

IUILayerContainer

The container that holds the UI elements.

layout

CommentsPaneLayout

The layout of the comments pane.

element

FrameworkElement

The framework element representing the comment.

annotationMarkerBox

AnnotationMarkerLayoutBox

The layout box for the annotation marker.

sectionBox

SectionLayoutBox

The layout box for the section.

viewOffset

PointF

The point at which to update the UI element.

Overrides CommentUIProviderBase.UpdateUIElement(IUILayerContainer, CommentsPaneLayout, FrameworkElement, AnnotationMarkerLayoutBox, SectionLayoutBox, PointF)