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:
public class CommentEndUIProvider : CommentUIProviderBase
Inheritance: objectCommentUIProviderBaseCommentEndUIProvider
Inherited Members
Constructors
public CommentEndUIProvider()
Properties
Gets the singleton instance of the CommentEndUIProvider.
public static CommentUIProviderBase Instance { get; }
Methods
Arranges the UI element for the comment end based on the specified layout parameters.
public override void ArrangeUIElement(IUILayerContainer pagePresenter, CommentsPaneLayout layout, FrameworkElement element, AnnotationMarkerLayoutBox annotationMarkerBox, SectionLayoutBox sectionBox, PointF viewOffset)
The UI layer container that holds the UI elements.
layoutCommentsPaneLayoutThe layout settings for the comments pane.
elementFrameworkElementThe framework element to be arranged.
annotationMarkerBoxAnnotationMarkerLayoutBoxThe layout box for the annotation marker.
sectionBoxSectionLayoutBoxThe layout box for the section.
viewOffsetPointFThe point at which to position the UI element.
Overrides:
Creates UI elements for the comment end marker in the specified layout box.
public override IEnumerable<FrameworkElement> CreateUIElements(IUILayerContainer pagePresenter, AnnotationMarkerLayoutBox markerBox, ObjectPool pool, RectangleF viewPort)
The container that provides the UI layer for rendering the elements.
markerBoxAnnotationMarkerLayoutBoxThe layout box where the annotation marker is positioned.
poolObjectPoolThe pool of reusable UI objects to optimize performance.
viewPortRectangleFThe 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:
Notifies the provider that a UI element is being removed from the comment end.
public override void ElementRemovingFromUI(FrameworkElement element)
The FrameworkElement that is being removed from the UI.
Overrides:
Determines whether there are visible elements in the specified comments pane layout and annotation marker layout.
public override bool HasVisibleElements(CommentsPaneLayout layout, AnnotationMarkerLayoutBox annotationMarkerBox, SectionLayoutBox sectionBox, RectangleF viewPort, PointF viewOffset)
The comments pane layout to check for visible elements.
annotationMarkerBoxAnnotationMarkerLayoutBoxThe layout box of the annotation marker.
sectionBoxSectionLayoutBoxThe layout box of the section.
viewPortRectangleFThe rectangle that defines the area of interest.
viewOffsetPointFThe point that is checked against the visible elements.
Returns:Returns true if there are visible elements; otherwise, false.
Overrides:
Updates the user interface element for a comment based on the provided parameters.
public override void UpdateUIElement(IUILayerContainer pagePresenter, CommentsPaneLayout layout, FrameworkElement element, AnnotationMarkerLayoutBox annotationMarkerBox, SectionLayoutBox sectionBox, PointF viewOffset)
The container that holds the UI elements.
layoutCommentsPaneLayoutThe layout of the comments pane.
elementFrameworkElementThe framework element representing the comment.
annotationMarkerBoxAnnotationMarkerLayoutBoxThe layout box for the annotation marker.
sectionBoxSectionLayoutBoxThe layout box for the section.
viewOffsetPointFThe point at which to update the UI element.
Overrides: