CommentRangeEnd
Marks the end of a comment range and holds the associated Comment and its child body document.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class CommentRangeEnd : AnnotationRangeEnd, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectDocumentElementInlineAnnotationMarkerBaseAnnotationRangeMarkerBaseAnnotationRangeEndCommentRangeEnd...
Implements:
Inherited Members
Constructors
Creates an unpaired comment-range end marker. Accessing Comment creates a default comment until one is assigned.
public CommentRangeEnd()
Properties
Represents the behavior when the Backspace key is pressed over the annotation.
public override AnnotationMarkerDeleteBehavior BackspaceBehavior { get; }
The backspace behavior.
Overrides:
Gets or sets the comment associated with this range. The first get creates a default comment if none was assigned; null cannot be assigned.
[XamlSerializable]
public Comment Comment { get; set; }
Gets a value indicating whether a new paired AnnotationRangeStart will be created during copy operation.
Default value is false.
This property is provided for backward compatibility.
protected override bool CreatePairedStartOnCopy { get; }
Should pair annotation.
Overrides:
Represents the behavior when the Delete key is pressed over the annotation.
public override AnnotationMarkerDeleteBehavior DeleteBehavior { get; }
The delete behavior.
Overrides:
Represents the behavior when the annotation is selected and Backspace or Delete keys are pressed.
public override AnnotationMarkerDeleteBehavior DeleteSelectedBehavior { get; }
The delete selected behavior.
Overrides:
Determines if the CaretPosition will be put before or after the annotation marker.
If the value of this property is true for an AnnotationRangeStart, then if you move the caret to the annotation start and start typing,
the newly inserted text will be considered as part of the annotation. Vice versa, if it is set to false, the typed text will be inserted before the annotation.
public override bool SkipPositionBefore { get; }
true if the position before the marker will be skipped; otherwise, false.
Overrides:
Methods
Does not copy content because the range marker contains no text.
protected override void CopyContentFromOverride(DocumentElement fromElement)
The source marker used by the document-element copy operation.
Overrides:
Deep-copies the associated comment and preserves the source annotation identifier.
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
The source comment-range end.
Overrides:
Creates a new end marker when this comment range is cloned.
protected override DocumentElement CreateNewElementInstance()
Overrides:
Creates the matching comment-range start marker for this end marker.
protected override AnnotationRangeStart CreateRangeStartInstance()
A new CommentRangeStart.
Overrides:
If a comment has been assigned and the range is paired, synchronizes both annotation identifiers with that comment's hash code.
public override void UpdateAnnotationID()
Overrides: