New to Telerik UI for WinForms? Start a free 30-day trial

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:

C#
public class CommentRangeEnd : AnnotationRangeEnd, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor

Inheritance: objectDisposableObjectRadObjectDocumentElementInlineAnnotationMarkerBaseAnnotationRangeMarkerBaseAnnotationRangeEndCommentRangeEnd...

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

Inherited Members AnnotationRangeEnd.CreatePairedStart()AnnotationRangeEnd.PairWithStart(AnnotationRangeStart)AnnotationRangeEnd.PairWithStartOverride(AnnotationRangeStart)AnnotationRangeEnd.StartAnnotationRangeEnd.IsPairedAnnotationMarkerBase.CreateLayoutBox(DocumentStructureCollection)AnnotationMarkerBase.AnnotationIDAnnotationMarkerBase.SkipPositionAfterAnnotationMarkerBase.IsWordSeparatorAnnotationMarkerBase.IsCopyableInline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)Inline.CopyContentFrom(DocumentElement)Inline.FieldStartDocumentElement.GetStyleProperty(IStylePropertyDefinition)DocumentElement.GetStyleProperty(string)DocumentElement.EnumerateChildrenOfType<T>()DocumentElement.GetParentOfType<T>()DocumentElement.CreateLayoutBox()DocumentElement.CopyPropertiesFrom(DocumentElement)DocumentElement.CopyPropertiesFromStyle(StyleDefinition)DocumentElement.ExtractStyleFromProperties()DocumentElement.ExtractStyleFromLocalProperties()DocumentElement.InvalidateAssociatedBoxesArrange()DocumentElement.InvalidateAssociatedBoxesMeasure()DocumentElement.InvalidateAssociatedBoxesLayout()DocumentElement.GetAssociatedLayoutBoxes()DocumentElement.GetRootDocument()DocumentElement.CreateDeepCopy()DocumentElement.CreateShallowCopy()DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)DocumentElement.ClearValue(IStylePropertyDefinition)DocumentElement.OnRemoved()DocumentElement.OnStyleChanging()DocumentElement.OnStyleChanged()DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)DocumentElement.OnParentChanging()DocumentElement.OnParentChanged()DocumentElement.ChildIndexDocumentElement.HasStyleDocumentElement.StyleDocumentElement.StyleNameDocumentElement.TagDocumentElement.FirstLayoutBoxDocumentElement.IsFirstLayoutBoxInitializedDocumentElement.DocumentElementsDocumentElement.ParentDocumentElement.ChildrenDocumentElement.PreviousSiblingDocumentElement.NextSiblingDocumentElement.CursorDocumentElement.StyleChangingDocumentElement.StyleChangedDocumentElement.StylePropertyChangedDocumentElement.ParentChangingDocumentElement.ParentChangedDocumentElement.PropertyValueChangedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Creates an unpaired comment-range end marker. Accessing Comment creates a default comment until one is assigned.

C#
public CommentRangeEnd()

Properties

Represents the behavior when the Backspace key is pressed over the annotation.

C#
public override AnnotationMarkerDeleteBehavior BackspaceBehavior { get; }
Property Value:

The backspace behavior.

Overrides: AnnotationMarkerBase.BackspaceBehavior

Gets or sets the comment associated with this range. The first get creates a default comment if none was assigned; null cannot be assigned.

C#
[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.

C#
protected override bool CreatePairedStartOnCopy { get; }
Property Value:

Should pair annotation.

Overrides: AnnotationRangeEnd.CreatePairedStartOnCopy

Represents the behavior when the Delete key is pressed over the annotation.

C#
public override AnnotationMarkerDeleteBehavior DeleteBehavior { get; }
Property Value:

The delete behavior.

Overrides: AnnotationMarkerBase.DeleteBehavior

Represents the behavior when the annotation is selected and Backspace or Delete keys are pressed.

C#
public override AnnotationMarkerDeleteBehavior DeleteSelectedBehavior { get; }
Property Value:

The delete selected behavior.

Overrides: AnnotationMarkerBase.DeleteSelectedBehavior

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.

The behavior of AnnotationRangeEnd is also controlled in the same manner.
C#
public override bool SkipPositionBefore { get; }
Property Value:

true if the position before the marker will be skipped; otherwise, false.

Overrides: AnnotationMarkerBase.SkipPositionBefore

Methods

Does not copy content because the range marker contains no text.

C#
protected override void CopyContentFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

The source marker used by the document-element copy operation.

Overrides: Inline.CopyContentFromOverride(DocumentElement)

Deep-copies the associated comment and preserves the source annotation identifier.

C#
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
Parameters:fromElementDocumentElement

The source comment-range end.

Overrides: AnnotationMarkerBase.CopyPropertiesFromOverride(DocumentElement)

Creates a new end marker when this comment range is cloned.

C#
protected override DocumentElement CreateNewElementInstance()
Returns:

DocumentElement

Overrides: DocumentElement.CreateNewElementInstance()

Creates the matching comment-range start marker for this end marker.

C#
protected override AnnotationRangeStart CreateRangeStartInstance()
Returns:

AnnotationRangeStart

A new CommentRangeStart.

Overrides: AnnotationRangeEnd.CreateRangeStartInstance()

If a comment has been assigned and the range is paired, synchronizes both annotation identifiers with that comment's hash code.

C#
public override void UpdateAnnotationID()

Overrides: AnnotationRangeEnd.UpdateAnnotationID()