AnnotationMarkerBase
Represents a marker inside a RadDocument.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class AnnotationMarkerBase : Inline, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor
Inheritance: objectDisposableObjectRadObjectDocumentElementInlineAnnotationMarkerBase...
Derived Classes:
Implements:
Inherited Members
Constructors
protected AnnotationMarkerBase()
Properties
Gets or sets the annotation identifier.
[XamlSerializable]
public int AnnotationID { get; set; }
The annotation identifier.
Represents the behavior when the Backspace key is pressed over the annotation.
public virtual AnnotationMarkerDeleteBehavior BackspaceBehavior { get; }
The backspace behavior.
Represents the behavior when the Delete key is pressed over the annotation.
public virtual AnnotationMarkerDeleteBehavior DeleteBehavior { get; }
The delete behavior.
Represents the behavior when the annotation is selected and Backspace or Delete keys are pressed.
public virtual AnnotationMarkerDeleteBehavior DeleteSelectedBehavior { get; }
The delete selected behavior.
Gets a value indicating whether this instance is copyable.
public override bool IsCopyable { get; }
true if this instance is copyable; otherwise, false.
Overrides:
Determines whether the annotation should be treated as word separator.
public virtual bool IsWordSeparator { get; }
A negation of the SkipPositionBefore property. If the position before the marker is skipped, then the one after it must not be skipped.
Exactly one of the positions must be skipped.
public virtual bool SkipPositionAfter { get; }
true if the position after the marker will be skipped; otherwise, false.
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.
public abstract bool SkipPositionBefore { get; }
true if the position before the marker will be skipped; otherwise, false.
Methods
Copies the properties from another document element to the current instance.
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)
The AnnotationMarkerBase to copy the properties from.
Overrides:
Creates a LayoutBox for the element.
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
The document collection.
Returns:Overrides: