CommentsPaneLayout
Measures and vertically positions comment balloons alongside their comment-range markers.
Definition
Namespace:Telerik.WinForms.Documents.UI.Annotations
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class CommentsPaneLayout
Inheritance: objectCommentsPaneLayout
Constructors
public CommentsPaneLayout()
Methods
Measures comment balloons in marker order, avoids overlap where possible, and adjusts their positions and heights to fit the pane.
public void Measure(IEnumerable<LayoutBox> layoutBoxes, SizeF availableSize, PointF sectionViewOffset, Padding sectionMargin, Thickness commentTemplateEditorMargin)
The layout boxes to scan; comment-range end marker boxes determine balloon order and anchor positions.
availableSizeSizeFThe available pane size; a fixed left margin is removed from its width for the balloons' connector area.
sectionViewOffsetPointFThe vertical view offset subtracted from marker line positions.
sectionMarginPaddingThe section margin whose top inset anchors the balloon layout.
commentTemplateEditorMarginThicknessThe margin around the embedded comment editor used when measuring each balloon.
The cached result is reused while
availableSizeandcommentTemplateEditorMarginremain unchanged. Call InvalidateMeasure() when the marker boxes, section offset, or section margin changes.