Class
AnnotationMarkerBase

Represents a marker inside a RadDocument.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public abstract class AnnotationMarkerBase : Inline

Inheritance: objectDocumentElementInlineAnnotationMarkerBase

Derived Classes: AnnotationRangeMarkerBaseFloatingBlock

Inherited Members Inline.CopyFromPositionToEndOfInline(DocumentPosition, DocumentPosition)Inline.CopyFromStartOfInlineToEndPosition(DocumentPosition)Inline.CopyContentFromOverride(DocumentElement)Inline.CopyContentFrom(DocumentElement)Inline.FieldStartDocumentElement.CreateNewElementInstance()DocumentElement.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.PropertyValueChanged

Constructors

AnnotationMarkerBase()

Declaration

cs-api-definition
protected AnnotationMarkerBase()

Properties

AnnotationID

Gets or sets the annotation identifier.

Declaration

cs-api-definition
[XamlSerializable]
public int AnnotationID { get; set; }

Property Value

int

The annotation identifier.

BackspaceBehavior

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

Declaration

cs-api-definition
public virtual AnnotationMarkerDeleteBehavior BackspaceBehavior { get; }

Property Value

AnnotationMarkerDeleteBehavior

The backspace behavior.

DeleteBehavior

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

Declaration

cs-api-definition
public virtual AnnotationMarkerDeleteBehavior DeleteBehavior { get; }

Property Value

AnnotationMarkerDeleteBehavior

The delete behavior.

DeleteSelectedBehavior

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

Declaration

cs-api-definition
public virtual AnnotationMarkerDeleteBehavior DeleteSelectedBehavior { get; }

Property Value

AnnotationMarkerDeleteBehavior

The delete selected behavior.

IsCopyable

Gets a value indicating whether this instance is copyable.

Declaration

cs-api-definition
public override bool IsCopyable { get; }

Property Value

bool

true if this instance is copyable; otherwise, false.

Overrides Inline.IsCopyable

IsWordSeparator

Determines whether the annotation should be treated as word separator.

Declaration

cs-api-definition
public virtual bool IsWordSeparator { get; }

Property Value

bool

SkipPositionAfter

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.

Declaration

cs-api-definition
public virtual bool SkipPositionAfter { get; }

Property Value

bool

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

SkipPositionBefore

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.

Declaration

cs-api-definition
public abstract bool SkipPositionBefore { get; }

Property Value

bool

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

Methods

CopyPropertiesFromOverride(DocumentElement)

Copies the properties from another document element to the current instance.

Declaration

cs-api-definition
protected override void CopyPropertiesFromOverride(DocumentElement fromElement)

Parameters

fromElement

DocumentElement

The AnnotationMarkerBase to copy the properties from.

Overrides Inline.CopyPropertiesFromOverride(DocumentElement)

CreateLayoutBox(DocumentStructureCollection)

Creates a LayoutBox for the element.

Declaration

cs-api-definition
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)

Parameters

documentCollection

DocumentStructureCollection

The document collection.

Returns

LayoutBox

Overrides DocumentElement.CreateLayoutBox(DocumentStructureCollection)